Move style.min.css to css/v1/style.min.css

Trying to break Google App Engine's aggressive caching.
This commit is contained in:
Alan Orth 2021-03-14 12:04:28 +02:00
parent aabb783d99
commit 8f6d337d2d
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
4 changed files with 5 additions and 5 deletions

View File

@ -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

View File

@ -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"
}
}

View File

@ -4,5 +4,5 @@
<meta name="description" content="Simple web interface for the DSpace CSV Metadata Quality tool.">
<meta name="author" content="Alan Orth">
<title>DSpace CSV Metadata Quality Checker</title>
<link href="{{ url_for('static', filename='css/style.min.css') }}" rel="stylesheet">
<link href="{{ url_for('static', filename='css/v1/style.min.css') }}" rel="stylesheet">
</head>