turbonostics — 2011-07-15T09:42:26-04:00 — #1
Dear Sitepoint community,
I have a number of numbers that I've updated, the problem is that by updating the website I have a problem, with returning users seeing a dreadful looking website, due to the cache on the web browsers not being cleared.
The website needs to be refreshed when the web page is loading.
overthemike — 2011-07-15T18:09:54-04:00 — #2
Not quite sure what you're asking. Are you wanting to know if you can clear a user's cache? The answer is no (that would be bad). You can tell the browser that you don't want a certain page cached and it might listen to you. Another thing you can do is change the filenames so it has to refresh (a good example of this would be including a version number in your css file name like: main.v1.0.css or using a timestamp or something).
paul_wilkins — 2011-07-15T19:34:54-04:00 — #3
Using the querystring for the version number or timestamp is typically the more accepted solution these days.