Hi,
To boost the performance of our website, we have decided to cache Javascripts and css too along with other static images.
Here is what I am doing
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
<VirtualHost x.x.x.x>
ExpiresActive On
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 day"
[other site configurations goes here]
</VirtualHost>
This works fine for me. After the first request from a browser, the subsequent requests (soft refresh - F5)are served from cache. But I am wondering how do I refresh this cache once after I deploy a new Javascript or css.
I thought that a server re-start will do that. But didn't.
The only way to refresh this cache is to do a hard refresh (CTRL + F5) from the browser, which is not desired as we would like to get the users the latest changes as soon as we deploy them.
Any help would be greatly appreciated.
Thanks
Abhilash