mirror of
https://github.com/jgeusebroek/docker-spotweb.git
synced 2025-08-07 13:48:28 +02:00
Caching and compression conf
From: https://github.com/spotweb/spotweb/wiki/Performance-tips Builds OK, caching works, compression is defaulted to 6 in zlib, didn’t notice huge spike in load. Signed-off-by: James Stout <stoutyhk@gmail.com>
This commit is contained in:
32
files/001-htaccess.conf
Normal file
32
files/001-htaccess.conf
Normal file
@@ -0,0 +1,32 @@
|
||||
<IfModule mod_expires.c>
|
||||
ExpiresActive On
|
||||
ExpiresDefault "access plus 4 hours"
|
||||
ExpiresByType application/javascript A900
|
||||
ExpiresByType application/x-javascript A900
|
||||
ExpiresByType text/javascript A900
|
||||
ExpiresByType text/html A90
|
||||
ExpiresByType text/xml A90
|
||||
ExpiresByType text/css A900
|
||||
ExpiresByType text/plain A62
|
||||
ExpiresByType image/gif A14400
|
||||
ExpiresByType image/jpg A14400
|
||||
ExpiresByType image/jpeg A14400
|
||||
ExpiresByType image/png A14400
|
||||
ExpiresByType image/bmp A14400
|
||||
ExpiresByType application/x-shockwave-flash A3600
|
||||
</IfModule>
|
||||
<IfModule mod_deflate.c>
|
||||
AddOutputFilterByType DEFLATE text/plain
|
||||
AddOutputFilterByType DEFLATE text/html
|
||||
AddOutputFilterByType DEFLATE text/xml
|
||||
AddOutputFilterByType DEFLATE text/css
|
||||
AddOutputFilterByType DEFLATE application/xml
|
||||
AddOutputFilterByType DEFLATE application/xhtml+xml
|
||||
AddOutputFilterByType DEFLATE application/rss+xml
|
||||
AddOutputFilterByType DEFLATE application/javascript
|
||||
AddOutputFilterByType DEFLATE application/x-javascript
|
||||
|
||||
BrowserMatch ^Mozilla/4 gzip-only-text/html
|
||||
BrowserMatch ^Mozilla/4\.0[678] no-gzip
|
||||
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
|
||||
</IfModule>
|
Reference in New Issue
Block a user