mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
fix: fix site unlocalized 404 pages + aggressive Netlify /assets caching (#5399)
This commit is contained in:
parent
0480afc75f
commit
072a5a7e2e
2 changed files with 29 additions and 5 deletions
18
website/static/_headers
Normal file
18
website/static/_headers
Normal file
|
@ -0,0 +1,18 @@
|
|||
|
||||
# /assets folder contain Webpack processed assets with a file hash
|
||||
# They are safe for immutable caching, as filename change when content change
|
||||
|
||||
/assets/*
|
||||
cache-control: immutable
|
||||
|
||||
/fr/assets/*
|
||||
cache-control: immutable
|
||||
|
||||
/pt-BR/assets/*
|
||||
cache-control: immutable
|
||||
|
||||
/ko/assets/*
|
||||
cache-control: immutable
|
||||
|
||||
/zh-CN/assets/*
|
||||
cache-control: immutable
|
Loading…
Add table
Add a link
Reference in a new issue