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
commit 51db916af2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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