jfriend
Jan-10-2008, 07:18 PM
The scene goes like this.
Customer: My site is all messed up in one browser, but not in the other.
Someone on dgrin: It works fine for me in both my browsers. Did you change anything recently?
Customer: It's really messed up for me - the whole gallery is blank. I didn't change anything. What do I do?
Customer: Is this what my customers are seeing?
Someone on dgrin: Try clearing your browser cache and then see if it works.
Customer: Did that. All fixed now - thanks.
Customer: Do my customers have to clear their browser cache?
Someone on dgrin: Hopefully not, but I'm not sure.
It seems like this is happening way too often these days. I get that a given Smugmug page is now a collection of a whole bunch of things (CSS stylesheets, JavaScript files, HTML pages, images, etc...) all with different cache lifetimes. And, clearly if two items are updated in a way that they have dependencies on each other, it's a recipe for problems until the cache lifetime causes both to be refreshed for everyone. Is this what is happening to so many people? It seems to me like the most likely cause.
But, Smugmug could take control of this and guarantee that this problem never happens if the included files (stylesheets, javascript files, etc...) were NEVER modified without also changing their filename and leaving the old one in place. Then a customer would always get a consistent version of the files. If the customer got an old version of the HTML file (not that likely because this is generated by Smugmug servers and not cached much if any), it would have a consistent set of old includes in it that would still work. If the customer got a new version of the HTML file, it would refer to the new include files which can't be out of date in the browser cache because they never previously existed. Wala, every customer sees a consistent set of changes right away and there can never be a version mismatch in the browser cache.
I do see that all included .js and .css files in my site do appear to have some sort of generated numbers in them except for the third party ones (quantserve, google-analytics, etc...). But, are the numbers getting changed everytime there's a change made to the file? If they were, I don't understand how anybody could ever get one of these browser cache problems.
Any ideas on why there are so many browser cache problems?
Customer: My site is all messed up in one browser, but not in the other.
Someone on dgrin: It works fine for me in both my browsers. Did you change anything recently?
Customer: It's really messed up for me - the whole gallery is blank. I didn't change anything. What do I do?
Customer: Is this what my customers are seeing?
Someone on dgrin: Try clearing your browser cache and then see if it works.
Customer: Did that. All fixed now - thanks.
Customer: Do my customers have to clear their browser cache?
Someone on dgrin: Hopefully not, but I'm not sure.
It seems like this is happening way too often these days. I get that a given Smugmug page is now a collection of a whole bunch of things (CSS stylesheets, JavaScript files, HTML pages, images, etc...) all with different cache lifetimes. And, clearly if two items are updated in a way that they have dependencies on each other, it's a recipe for problems until the cache lifetime causes both to be refreshed for everyone. Is this what is happening to so many people? It seems to me like the most likely cause.
But, Smugmug could take control of this and guarantee that this problem never happens if the included files (stylesheets, javascript files, etc...) were NEVER modified without also changing their filename and leaving the old one in place. Then a customer would always get a consistent version of the files. If the customer got an old version of the HTML file (not that likely because this is generated by Smugmug servers and not cached much if any), it would have a consistent set of old includes in it that would still work. If the customer got a new version of the HTML file, it would refer to the new include files which can't be out of date in the browser cache because they never previously existed. Wala, every customer sees a consistent set of changes right away and there can never be a version mismatch in the browser cache.
I do see that all included .js and .css files in my site do appear to have some sort of generated numbers in them except for the third party ones (quantserve, google-analytics, etc...). But, are the numbers getting changed everytime there's a change made to the file? If they were, I don't understand how anybody could ever get one of these browser cache problems.
Any ideas on why there are so many browser cache problems?