1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/dokuwiki_ynh.git synced 2024-09-03 18:26:20 +02:00

[Fix] caching pictures that didn't work (#65)

Set HTTP Headers 'Expires' on the correct PATH...

Co-authored-by: Gofannon <gofannon+github@riseup.net>
This commit is contained in:
Gofannon 2020-05-15 12:53:36 +02:00 committed by GitHub
parent ff984be3b5
commit 717f0f9f44
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,12 +39,12 @@ location __PATH__/ {
} }
# Deny Access to htaccess-Files for Apache # Deny Access to htaccess-Files for Apache
location ~ /\.ht { location ~ __PATH__/\.ht {
deny all; deny all;
} }
# Serve static files # Serve static files
location ~ ^/lib.*\.(gif|png|ico|jpg)$ { location ~ ^__PATH__/lib.*\.(gif|png|ico|jpg)$ {
expires 30d; expires 30d;
} }