Closed Bug 1336504 Opened 9 years ago Closed 9 years ago

Serve long-lived static asserts with a Cache-Control containing the 'immutable' directive

Categories

(Tree Management :: Treeherder, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

Details

Attachments

(1 file)

Even if static assets are served with a large Cache-Control max-age , browsers still ignore this in several cases - the most notable of which is the user hitting refresh (not even a force refresh). As such, a new 'immutable' directive has been proposed, which means "no really, don't ask for this again before the max-age is up, unless the user does a force-reload using eg ctrl+shift+F5": https://bitsup.blogspot.co.uk/2016/05/cache-control-immutable.html https://hacks.mozilla.org/2017/01/using-immutable-caching-to-speed-up-the-web/ This is now supported in Firefox (not other browsers for the moment), so we can start using it. WhiteNoise has just added support for it out of the box, so all we need to do is update to the latest Whitenoise release :-)
Attachment #8833367 - Flags: review?(cdawson)
Attachment #8833367 - Flags: review?(cdawson) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: