From b818728a2fecddeff4cfdc7c41a2fc045b3acc0d Mon Sep 17 00:00:00 2001 From: Inian Date: Thu, 8 Oct 2020 20:34:46 +0800 Subject: [PATCH] cache static assets for 3 hours at least (#242) * cache static assets for 3 hours at least * moving _headers to the static folder --- web/static/_headers | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 web/static/_headers diff --git a/web/static/_headers b/web/static/_headers new file mode 100644 index 00000000000..f1ccf365082 --- /dev/null +++ b/web/static/_headers @@ -0,0 +1,20 @@ +/*.css + Cache-Control: public, max-age=10800 + +/*.js + Cache-Control: public, max-age=10800 + +/*.png + Cache-Control: public, max-age=10800 + +/*.jpg + Cache-Control: public, max-age=10800 + +/*.svg + Cache-Control: public, max-age=10800 + +/*.gif + Cache-Control: public, max-age=10800 + +/* + X-Frame-Options: DENY \ No newline at end of file