rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/apache
2019-10-21 10:18:17 +02:00

22 lines
531 B
Plaintext

AddDefaultCharset UTF-8
RewriteEngine On
# Serve gzipped version if available and accepted
AddEncoding x-gzip .gz
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [QSA,L]
<FilesMatch \.css\.gz$>
ForceType text/css
Header append Vary Accept-Encoding
</FilesMatch>
<FilesMatch \.js\.gz$>
ForceType application/javascript
Header append Vary Accept-Encoding
</FilesMatch>
<FilesMatch \.html\.gz$>
ForceType text/html
Header append Vary Accept-Encoding
</FilesMatch>