Prevent browser from caching resources

Sometimes we need to clear the browser cache or prevent the browser from caching resources so that we always get the latest output from the server.

Disabling caching of¬†your webpages ensures your resources come from the server each and every time. In every browser, you’ll find the option to disable caching or even you can clear the cached resources but this type of caching is client side caching and we do not rely on whether users will disable cache or clear cache. Therefore we want to ensure that every time a page is requested will bring the updated content from the server.

Continue reading “Prevent browser from caching resources”