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:
parent
ff984be3b5
commit
717f0f9f44
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue