From 4a7934f9d84a0c9a69ef4c9024faa37763b3fd83 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Fri, 15 Jul 2022 14:27:17 +0200 Subject: [PATCH] Headers --- _headers | 3 +++ scripts/build_website.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 _headers diff --git a/_headers b/_headers new file mode 100644 index 00000000..413a7fbe --- /dev/null +++ b/_headers @@ -0,0 +1,3 @@ +/fs/* + Last-Modified: 0 + X-Permission: ro \ No newline at end of file diff --git a/scripts/build_website.sh b/scripts/build_website.sh index 5fba4d31..13ea62f0 100755 --- a/scripts/build_website.sh +++ b/scripts/build_website.sh @@ -4,7 +4,7 @@ npm run clean-build rm -rf website mkdir -p website/fs/_plug cp -r packages/web/dist/* website/ -cp _redirects website/ +cp _redirects _headers website/ cp -r docs/* website/fs/ cp packages/plugs/dist/* website/fs/_plug/ find website/fs/ -depth -name "*.md" -exec sh -c 'mv "$1" "${1%.md}"' _ {} \;