Merge pull request #6953 from nextcloud/nginx-cache

Cache images on browser
This commit is contained in:
Julius Härtl
2021-07-14 15:58:16 +02:00
committed by GitHub

View File

@@ -132,7 +132,7 @@ server {
fastcgi_request_buffering off;
}
location ~ \.(?:css|js|svg|gif)$ {
location ~ \.(?:css|js|svg|gif|png|jpg|ico)$ {
try_files $uri /index.php$request_uri;
expires 6M; # Cache-Control policy borrowed from `.htaccess`
access_log off; # Optional: Don't log access to assets