diff --git a/~config/httpd.conf b/~config/httpd.conf index 2ee1df0..078ae13 100644 --- a/~config/httpd.conf +++ b/~config/httpd.conf @@ -120,14 +120,14 @@ TraceEnable off SetEnvIf Remote_Addr "127.0.0.1" dontlog # SetEnvIf Remote_Addr "::1" dontlog # Do not log various assets - SetEnvIf Request_URI \.(a?png|crx|css|eot|gif|ico|jpe?g|js|mp4|oga|ogg|ogv|otf|pdf|svg|ttf|txt|vcard|vcf|webm|webmanifest|wasm|webp|woff|woff2|xml|xsl)$ dontlog + SetEnvIf Request_URI \.(a?png|crx|css|eot|gif|ico|jpe?g|m?js|mp4|oga|ogg|ogv|otf|pdf|svg|ttf|txt|vcard|vcf|webm|webmanifest|wasm|webp|woff|woff2|xml|xsl)$ dontlog CustomLog "logs/access_log" combined env=!dontlog # Force UTF-8 for certain file types - AddCharset utf-8 .css .js .json .jsonld .svg .vcard .vcf .vtt .webmanifest .xml .xsl + AddCharset utf-8 .css .js .json .mjs .jsonld .svg .vcard .vcf .vtt .webmanifest .xml .xsl # Proper MIME type # http://www.iana.org/assignments/media-types/application/font-sfnt @@ -153,7 +153,7 @@ TraceEnable off AddType image/x-icon ico # Servers should use text/javascript for JavaScript resources # https://html.spec.whatwg.org/multipage/scripting.html#scriptingLanguages - AddType text/javascript js + AddType text/javascript js mjs AddType text/vtt vtt AddType text/vcard vcard vcf AddType video/mp4 mp4 @@ -266,7 +266,7 @@ TraceEnable off # Header set Access-Control-Allow-Origin "*" env=IS_CORS # - + # Do not revalidate until cache expired https://www.keycdn.com/blog/cache-control-immutable/ Header append Cache-Control immutable @@ -277,7 +277,7 @@ TraceEnable off Header unset msapplication-config env=edge - + # Prevent MIME-sniffing to "script" and "style" types https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/compatibility/gg622941(v=vs.85) Header set X-Content-Type-Options nosniff @@ -311,7 +311,7 @@ TraceEnable off ExpiresByType text/html "access plus 1 week" - + # Do not show a snippet in the search results for this files # CSS and JS files must stay indexable/crawlable in order to allow search engines to render the pages like a modern browser https://webmasters.googleblog.com/2014/05/understanding-web-pages-better.html Header set X-Robots-Tag nosnippet