Project

General

Profile

Feature #7251

Updated by Jim Pingle about 7 years ago

JavaScript and CSS are is cached too aggressively by browsers, so when any significant change happens, users must manually clear their browser cache or GUI behavior is unpredictable/erratic. 

 There are a few ways to combat this, such as URL fingerprinting (e.g. "blah.js?12345") or web server header changes. Adding one or more of these methods will ensure users do not have to take manual action when we make changes to JavaScript or CSS, JavaScript, and if we add a method that uses a file hash to identify the file, it could be fully automated (or nearly so). 

 More suggestions here: https://developers.google.com/web/fundamentals/performance/optimizing-content-efficiency/http-caching#invalidating-and-updating-cached-responses

Back