build: add _headers to customize assets res headers in netlify
This commit is contained in:
parent
52b64e2acb
commit
1229afeb52
1 changed files with 12 additions and 0 deletions
12
assets/_headers
Normal file
12
assets/_headers
Normal 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
|
Loading…
Reference in a new issue