mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
chore(website): set cache-control for static assets (#6381)
This commit is contained in:
parent
6c0da3ee4b
commit
732ecd18e8
1 changed files with 15 additions and 5 deletions
|
@ -3,16 +3,26 @@
|
||||||
# They are safe for immutable caching, as filename change when content change
|
# They are safe for immutable caching, as filename change when content change
|
||||||
|
|
||||||
/assets/*
|
/assets/*
|
||||||
cache-control: immutable
|
Cache-Control: public
|
||||||
|
Cache-Control: max-age=365000000
|
||||||
|
Cache-Control: immutable
|
||||||
|
|
||||||
/fr/assets/*
|
/fr/assets/*
|
||||||
cache-control: immutable
|
Cache-Control: public
|
||||||
|
Cache-Control: max-age=365000000
|
||||||
|
Cache-Control: immutable
|
||||||
|
|
||||||
/pt-BR/assets/*
|
/pt-BR/assets/*
|
||||||
cache-control: immutable
|
Cache-Control: public
|
||||||
|
Cache-Control: max-age=365000000
|
||||||
|
Cache-Control: immutable
|
||||||
|
|
||||||
/ko/assets/*
|
/ko/assets/*
|
||||||
cache-control: immutable
|
Cache-Control: public
|
||||||
|
Cache-Control: max-age=365000000
|
||||||
|
Cache-Control: immutable
|
||||||
|
|
||||||
/zh-CN/assets/*
|
/zh-CN/assets/*
|
||||||
cache-control: immutable
|
Cache-Control: public
|
||||||
|
Cache-Control: max-age=365000000
|
||||||
|
Cache-Control: immutable
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue