You can not put a filesmatch inside of another entry.. so we either need to make virtual hosts with different rules or something else. Going for something else.

This commit is contained in:
Stephen Smoogen 2018-11-29 19:25:51 +00:00
parent 85cef7acb7
commit fb274af9e1

View file

@ -221,27 +221,27 @@ AddType video/webm .webm
AddType text/plain .spec AddType text/plain .spec
AddType application/vnd.android.package-archive .apk AddType application/vnd.android.package-archive .apk
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
# # #
# Everything else that ends in gz is just text/plain # # Everything else that ends in gz is just text/plain
# # #
<FilesMatch "\.gz$"> # <FilesMatch "\.gz$">
ForceType text/plain # ForceType text/plain
Header set Content-Encoding: gzip # Header set Content-Encoding: gzip
</FilesMatch> # </FilesMatch>
# # #
# Match xml.gz to application/x-gzip for repo files # # Match xml.gz to application/x-gzip for repo files
# # #
<FilesMatch "xml\.gz$"> # <FilesMatch "xml\.gz$">
ForceType application/x-gzip # ForceType application/x-gzip
Header unset Content-Encoding # Header unset Content-Encoding
</FilesMatch> # </FilesMatch>
# # #
# Match tar.gz to application/x-gzip for repo files # # Match tar.gz to application/x-gzip for repo files
# # #
<FilesMatch "tar\.gz$"> # <FilesMatch "tar\.gz$">
ForceType application/x-gzip # ForceType application/x-gzip
Header unset Content-Encoding # Header unset Content-Encoding
</FilesMatch> # </FilesMatch>
<Location /> <Location />
# Insert filter # Insert filter
@ -269,13 +269,6 @@ AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css a
Header append Vary User-Agent env=!dont-vary Header append Vary User-Agent env=!dont-vary
</Location> </Location>
<LocationMatch "/repos/.*$">
<FilesMatch "\.gz$">
ForceType application/x-gzip
Header unset Content-Encoding
</FilesMatch>
</LocationMatch>
<LocationMatch "/repos/.*\.(xml|xml\.gz|xml\.asc|sqlite.+)$"> <LocationMatch "/repos/.*\.(xml|xml\.gz|xml\.asc|sqlite.+)$">
Header set Cache-Control "must-revalidate" Header set Cache-Control "must-revalidate"
ExpiresActive On ExpiresActive On