mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-04 01:09:20 +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
|
||||
|
||||
/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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue