mirror of
https://github.com/jgeusebroek/docker-spotweb.git
synced 2025-06-03 06:07:23 +02:00

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>
32 lines
1.1 KiB
Plaintext
32 lines
1.1 KiB
Plaintext
<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> |