From 8f6d337d2d4611c35b4998c8acf8ceaba3bb89aa Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Sun, 14 Mar 2021 12:04:28 +0200 Subject: [PATCH] Move style.min.css to css/v1/style.min.css Trying to break Google App Engine's aggressive caching. --- app.yaml | 4 ++-- package.json | 4 ++-- static/css/{ => v1}/style.min.css | 0 templates/head.html | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) rename static/css/{ => v1}/style.min.css (100%) diff --git a/app.yaml b/app.yaml index 1b1d033..10cba35 100644 --- a/app.yaml +++ b/app.yaml @@ -2,7 +2,7 @@ runtime: python39 entrypoint: gunicorn -b :$PORT main:app handlers: -- url: /static/css - static_dir: static/css +- url: /static/css/v1 + static_dir: static/css/v1 http_headers: Cache-Control: private diff --git a/package.json b/package.json index 3b44740..ed33176 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,8 @@ "sass": "^1.32.7" }, "scripts": { - "build:css": "sass --style expanded source/scss/style.scss static/css/style.css.tmp && cleancss --level 1 static/css/style.css.tmp -o static/css/style.min.css", + "build:css": "sass --style expanded source/scss/style.scss static/css/v1/style.css.tmp && cleancss --level 1 static/css/v1/style.css.tmp -o static/css/v1/style.min.css", "build": "npm run build:css && npm run clean", - "clean": "rm static/css/style.css.tmp static/css/style.css.tmp.map" + "clean": "rm static/css/v1/style.css.tmp static/css/v1/style.css.tmp.map" } } diff --git a/static/css/style.min.css b/static/css/v1/style.min.css similarity index 100% rename from static/css/style.min.css rename to static/css/v1/style.min.css diff --git a/templates/head.html b/templates/head.html index 4aa57de..de7e062 100644 --- a/templates/head.html +++ b/templates/head.html @@ -4,5 +4,5 @@ DSpace CSV Metadata Quality Checker - +