0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-07-21 22:58:05 +02:00

Compare commits

...

3 commits

Author SHA1 Message Date
Tommy
d0d915b115
Merge 7753af1b0c into 69c1e4a000 2025-02-08 14:42:52 +00:00
J0WI
69c1e4a000
Update cache policy to match documentation (fix #2313) (#2369) 2025-02-07 02:04:45 +00:00
Tommy
7753af1b0c Disable absolute redirect
Signed-off-by: Tommy <contact@tommytran.io>
2024-10-13 13:57:22 +00:00
4 changed files with 8 additions and 4 deletions

View file

@ -10,6 +10,8 @@ events {
http { http {
absolute_redirect off;
include mime.types; include mime.types;
default_type application/octet-stream; default_type application/octet-stream;
types { types {
@ -183,7 +185,7 @@ http {
} }
} }
location ~ \.woff2?$ { location ~ \.(otf|woff2?)$ {
try_files $uri /index.php$request_uri; try_files $uri /index.php$request_uri;
expires 7d; # Cache-Control policy borrowed from `.htaccess` expires 7d; # Cache-Control policy borrowed from `.htaccess`
access_log off; # Optional: Don't log access to assets access_log off; # Optional: Don't log access to assets

View file

@ -183,7 +183,7 @@ http {
} }
} }
location ~ \.woff2?$ { location ~ \.(otf|woff2?)$ {
try_files $uri /index.php$request_uri; try_files $uri /index.php$request_uri;
expires 7d; # Cache-Control policy borrowed from `.htaccess` expires 7d; # Cache-Control policy borrowed from `.htaccess`
access_log off; # Optional: Don't log access to assets access_log off; # Optional: Don't log access to assets

View file

@ -10,6 +10,8 @@ events {
http { http {
absolute_redirect off;
include mime.types; include mime.types;
default_type application/octet-stream; default_type application/octet-stream;
types { types {
@ -183,7 +185,7 @@ http {
} }
} }
location ~ \.woff2?$ { location ~ \.(otf|woff2?)$ {
try_files $uri /index.php$request_uri; try_files $uri /index.php$request_uri;
expires 7d; # Cache-Control policy borrowed from `.htaccess` expires 7d; # Cache-Control policy borrowed from `.htaccess`
access_log off; # Optional: Don't log access to assets access_log off; # Optional: Don't log access to assets

View file

@ -183,7 +183,7 @@ http {
} }
} }
location ~ \.woff2?$ { location ~ \.(otf|woff2?)$ {
try_files $uri /index.php$request_uri; try_files $uri /index.php$request_uri;
expires 7d; # Cache-Control policy borrowed from `.htaccess` expires 7d; # Cache-Control policy borrowed from `.htaccess`
access_log off; # Optional: Don't log access to assets access_log off; # Optional: Don't log access to assets