Jump to content

HTML Caching


jxfish2

Recommended Posts

I know how to turn off caching for an entire webpage, but I have a situation where I do not want to turn off caching for the entire webpage.

 

But, I would like to turn off caching for 2 particular "Dynamically generated" HREF links, within the main webpage.

 

Is there a way to do this, through either the TR or TD tags?

 

What about some other tags, within the TD tag?

 

What about within the <a href... tag?

 

Thanks in advance

 

JCF.

Link to comment
Share on other sites

  • 2 weeks later...

In the HTML 5 specification the / character (called a SOLIDUS) is valid but has no effect for void elements such as <br />, <hr />, <img />, <input />, etc. and for foreign elements (such as SVG tags) it designates a start tag that is marked as self-closing. It is not a valid syntax for all other tags (such as <button />

Link to comment
Share on other sites

But, I would like to turn off caching for 2 particular "Dynamically generated" HREF links, within the main webpage.

 

The most common scheme I see used for cache avoidance is to add a timestamp or random number to the end of the path such as...

href="./mypath/myfile.html?nocache=8909878987"
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...