Cache new folders for canvas

This commit is contained in:
Hans5958 2022-04-16 13:17:12 +07:00
parent 1afbd77b82
commit ab573d11b0
2 changed files with 5 additions and 10 deletions

View file

@ -1,10 +0,0 @@
[[headers]]
for = "/*"
[headers.values]
Access-Control-Allow-Origin = "*"
[[headers]]
for = "/_img/place/*.png"
[headers.values]
# 28 days
cache-control = "public, max-age=604800"

View file

@ -4,3 +4,8 @@
/_img/place/*.png
cache-control: public, max-age=604800
/_img/canvas/*/*.png
cache-control: public, max-age=604800
/_img/canvas/*.png
cache-control: public, max-age=604800