treat html extension as an implementation detail

These redirects aren't being used for any of the actual pages based on
the access logs.
This commit is contained in:
Daniel Micay 2021-06-02 20:07:52 -04:00
parent 02b2606b93
commit 81fa2a6f23

View File

@ -133,10 +133,6 @@ http {
gzip_static on;
brotli_static on;
if ($request_uri ~ ^/(.*)\.html$) {
return 301 /$1;
}
if ($request_uri ~ (.*)//(.*)) {
return 301 $1/$2;
}
@ -293,7 +289,7 @@ http {
add_header Cache-Control "public, max-age=1800";
}
location ~ "\.(br|gz)$" {
location ~ "\.(br|gz|html)$" {
internal;
}