Skip to content

Commit 69c1e4a

Browse files
authored
Update cache policy to match documentation (fix #2313) (#2369)
1 parent 877ddb4 commit 69c1e4a

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.examples/docker-compose/insecure/mariadb/fpm/web/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ http {
183183
}
184184
}
185185

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

.examples/docker-compose/insecure/postgres/fpm/web/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ http {
183183
}
184184
}
185185

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

.examples/docker-compose/with-nginx-proxy/mariadb/fpm/web/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ http {
183183
}
184184
}
185185

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

.examples/docker-compose/with-nginx-proxy/postgres/fpm/web/nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ http {
183183
}
184184
}
185185

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

0 commit comments

Comments
 (0)