mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Merge pull request #6953 from nextcloud/nginx-cache
Cache images on browser
This commit is contained in:
commit
51db916af2
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user