Einstein47
Programmer
I have asked this in the JavaScript forum, but here seems to be a better place.
I have an external javascript file (.js) that I have updated, but in testing I have found that many of the clients' browsers are reading the cached version of the .js file. This is bad because it is causing servlet errors when I know that I have fixed that functionality.
I have been looking up ways to better control the caching of files by using the ExpiresByType directive. However, I do want the .js files to be cached. I really want the caching to determine if the file has been modified since last access and if so then force the client's browser to get the new file. Right now this isn't happening.
I fear that when I deploy the app, the help desk will get flooded with calls when all they users will need to do is force-refresh their browsers with SHIFT+Reload. Or clear their local cache.
I would much rather control this on the server than with each individual client. Any advice would be appreciated.
Einstein47
(Some people make things happen. Some people watch things happen. Some people wonder what happened. - Unknown)
I have an external javascript file (.js) that I have updated, but in testing I have found that many of the clients' browsers are reading the cached version of the .js file. This is bad because it is causing servlet errors when I know that I have fixed that functionality.
I have been looking up ways to better control the caching of files by using the ExpiresByType directive. However, I do want the .js files to be cached. I really want the caching to determine if the file has been modified since last access and if so then force the client's browser to get the new file. Right now this isn't happening.
I fear that when I deploy the app, the help desk will get flooded with calls when all they users will need to do is force-refresh their browsers with SHIFT+Reload. Or clear their local cache.
I would much rather control this on the server than with each individual client. Any advice would be appreciated.
Einstein47
(Some people make things happen. Some people watch things happen. Some people wonder what happened. - Unknown)