chiark
/
gitweb
/
~bjharris
/
bedstead.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
940069c
)
Add JavaScript and WASM to compressible file types in .htaccess
origin/webstead
author
Ben Harris
<bjh21@bjh21.me.uk>
Sat, 18 Oct 2025 23:15:27 +0000
(
00:15
+0100)
committer
Ben Harris
<bjh21@bjh21.me.uk>
Tue, 13 Jan 2026 21:42:18 +0000
(21:42 +0000)
.htaccess
patch
|
blob
|
history
diff --git
a/.htaccess
b/.htaccess
index 3200afd8ee7f36cac3e2bc5819a6df1fd2d9549b..d2a504de816e80d29101878eb7f2ee44e44cb27a 100644
(file)
--- a/
.htaccess
+++ b/
.htaccess
@@
-5,6
+5,7
@@
AddType font/otf;outlines=CFF .otf
ForceType text/plain
</FilesMatch>
AddOutputFilterByType DEFLATE application/xhtml+xml text/css font/otf \
+ application/javascript application/wasm \
text/plain text/x-csrc application/postscript
Header set Content-Security-Policy "form-action 'none';\
default-src 'none'; connect-src 'self'; font-src 'self'; img-src 'self';\