css - How do I ensure that visitors on my website see redesigned pages instead of old cached pages and graphics? -
I recently changed the new graphics to my website, new CSS, buttons, etc. When the current user returns to my site, I want to make sure that they serve new pages and style sheets and the browsers do not try to load old stylesheets etc.
Previously my headers looked like this -
I have a header file public page -
and the header file for the pages inside the site (after the user is logged on)
& lt; Meta http-equiv = "expires" content = "Mon, December 04, 1999 21: 28:02 GMT" & gt; & Lt; Meta http-equiv = "pragma" content = "no-cache" & gt; & Lt; Meta http-equiv = "Finished" content = "- 1" & gt; & Lt; Meta http-equiv = "cache-control" content = "no-cache, no-store, need-modify" & gt; I am thinking that there is a possibility that the pages inside the site will be presented as fresh because there is no cache in cache control. But will my visitors still see the cached version on public pages? Should I add the same cache-control tag to the header page for public pages?
There was one more thing that I had to add a new string to a new file in a new CSS file -
Example -
Lt; Link rel = "stylesheet" href = "css / styles.css? New" type = "text / css" & gt; Any other good advice / best practice for this?
Thank you!
The 2019 deadline is a complete commitment. You are saying that there is no need to check for updates for the next 8 years.
So yes, you should at least remove those headings from public pages, and if you want to ensure 100% then add other headers. If you leave them out, it will be assumed that the cached version may be used for the last long modified http-header.
You should only use 1 line and 4. Pragma does nothing (only client-to-server usage is not server-to-client). There is no use of double termination and -1 is an invalid value.
Comments
Post a Comment