mirror of
https://github.com/YunoHost-Apps/nextcloud_ynh.git
synced 2024-09-03 19:55:57 +02:00
Update nginx.conf
This commit is contained in:
parent
df18d9f51e
commit
8b762c67e1
1 changed files with 9 additions and 9 deletions
|
@ -1,12 +1,3 @@
|
|||
# Expires mappings
|
||||
map $sent_http_content_type $expires {
|
||||
default off;
|
||||
text/html epoch;
|
||||
text/css max;
|
||||
application/javascript max;
|
||||
~image/ max;
|
||||
}
|
||||
|
||||
location ^~ /.well-known {
|
||||
# The following 6 rules are borrowed from `.htaccess`
|
||||
|
||||
|
@ -71,6 +62,15 @@ location ^~ __PATH__/ {
|
|||
# always provides the desired behaviour.
|
||||
index index.php index.html __PATH__/index.php$request_uri;
|
||||
|
||||
# Expires mappings
|
||||
map $sent_http_content_type $expires {
|
||||
default off;
|
||||
text/html epoch;
|
||||
text/css max;
|
||||
application/javascript max;
|
||||
~image/ max;
|
||||
}
|
||||
|
||||
# Default Cache-Control policy
|
||||
expires $expires;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue