No cache tags and W3 validation.
Hi there folks! Been a long time lurker, but didn't find anything specific to my question so took the plunge and registered.
Due to the ever-changing daily nature of my homepage, I've added the following code to my header to prevent the page from caching:
I've read from a few different places that adding a secondary header tag with the above code right at the end of the HTML code is advisable to ensure that the browser does not cache the page, which would result in the following being added to the bottom of my code:
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="-1" />
However, having a second header at the bottom of my page is throwing keeping my page from being 100% validated. Minus that code my site is completely W3 validated without any errors or warnings. It's frustrating that the above code is the only thing from keeping my site from reaching complete and utter validation. Has anyone else had any experience with the no-cache codes? Is it absolutely necessary to have a second heading of it? Or is there an alternative? It's really only a couple of divs that I don't want cached, but my understanding is that no-cache codes are an all or nothing kind of thing.
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
Any advice would be greatly appreciated. Cheers!