From 1229afeb52c2a7f09718f5240adbc5f8895dc18b Mon Sep 17 00:00:00 2001 From: Haishan Date: Tue, 11 Feb 2020 20:59:07 +0800 Subject: [PATCH] build: add _headers to customize assets res headers in netlify --- assets/_headers | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 assets/_headers diff --git a/assets/_headers b/assets/_headers new file mode 100644 index 0000000..877d928 --- /dev/null +++ b/assets/_headers @@ -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