build: add _headers to customize assets res headers in netlify

This commit is contained in:
Haishan 2020-02-11 20:59:07 +08:00
parent 52b64e2acb
commit 1229afeb52

12
assets/_headers Normal file
View file

@ -0,0 +1,12 @@
# for netlify hosting
# https://docs.netlify.com/routing/headers/#syntax-for-the-headers-file
/*
X-Frame-Options: DENY
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Referrer-Policy: same-origin
/*.css
Cache-Control: public, max-age=31536000, immutable
/*.js
Cache-Control: public, max-age=31536000, immutable