Web Deployment Checklist - Caching
Often I deploy a change to a site, and only part of the change shows up in my clients’ browser. This is embarrassing, and bites me in the ass often. So, here are some of the strategies I am learning to ensure my that all the changes appear in my client’s browser.
- Either change the name of the external resource or add a time stamp query string such as
?rev=20141906
- Add a time stamp query string to change, external resources.
- This includes images, style sheets, JavaScript, and any other external resources.
- All those 304s mean that the browser is serving cached results, which may be stale.
304 Galore