Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Add cache-control:immutable for immutable assets #425

Merged
merged 1 commit into from
Sep 7, 2018

Conversation

nolanlawson
Copy link
Contributor

Since the client/ assets are immutable and uniq'ed by a checksum, we can add immutable caching headers to allow browsers that support it (Firefox, Edge currently) to avoid unnecessary revalidation requests.

The way Chrome currently works is that it uses heuristics based on the max-age rather than immutable, so this will also work for Chrome. Not sure about Safari.

@Rich-Harris Rich-Harris merged commit 9ea5e5e into sveltejs:master Sep 7, 2018
@Rich-Harris
Copy link
Member

TIL! Fantastic, thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants