fix: fix site unlocalized 404 pages + aggressive Netlify /assets caching (#5399)

This commit is contained in:
Sébastien Lorber 2021-08-20 19:37:20 +02:00 committed by GitHub
parent 0480afc75f
commit 072a5a7e2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 5 deletions

18
website/static/_headers Normal file
View 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