We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b439c17 + d0baadf commit 8ef2be7Copy full SHA for 8ef2be7
src/nginx/common.conf
@@ -78,6 +78,18 @@ location = /nginx-status {
78
# deny access to hidden files/folders
79
location ~ /\. { access_log off; log_not_found off; deny all; }
80
81
+# for user uploaded files, use a long cache value, as uploads are not modified anyway: an URL points always to the same exact file
82
+location ^~ /app/download.php {
83
+ more_set_headers "Cache-Control: public, max-age=31536000";
84
+ include /etc/nginx/fastcgi.conf;
85
+ fastcgi_index index.php;
86
+ log_not_found off;
87
+
88
+ if (-f $request_filename) {
89
+ fastcgi_pass unix:/run/php-fpm.sock;
90
+ }
91
+}
92
93
# assets configuration
94
location ~* \.(js|css|png|jpg|jpeg|gif|ico|map|ttf|txt|woff|woff2|svg|webmanifest)$ {
95
access_log off;
0 commit comments