Welcome to Shaun Luttin's public notebook. It contains rough, practical notes. The guiding idea is that, despite what marketing tells us, there are no experts at anything. Sharing our half-baked ideas helps everyone. We're all just muddling thru. Find out more about our work at bigfont.ca.

Web Deployment Checklist - Caching

Tags: web-development

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