chore(website): set cache-control for static assets (#6381)

This commit is contained in:
Nick Schonning 2022-01-19 06:10:18 -05:00 committed by GitHub
parent 6c0da3ee4b
commit 732ecd18e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,16 +3,26 @@
# They are safe for immutable caching, as filename change when content change
/assets/*
cache-control: immutable
Cache-Control: public
Cache-Control: max-age=365000000
Cache-Control: immutable
/fr/assets/*
cache-control: immutable
Cache-Control: public
Cache-Control: max-age=365000000
Cache-Control: immutable
/pt-BR/assets/*
cache-control: immutable
Cache-Control: public
Cache-Control: max-age=365000000
Cache-Control: immutable
/ko/assets/*
cache-control: immutable
Cache-Control: public
Cache-Control: max-age=365000000
Cache-Control: immutable
/zh-CN/assets/*
cache-control: immutable
Cache-Control: public
Cache-Control: max-age=365000000
Cache-Control: immutable