-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
86 changed files
with
229 additions
and
1,602 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
DefaultLanguage en | ||
AddDefaultCharset utf-8 | ||
ServerSignature Off | ||
|
||
|
||
<IfModule mod_rewrite.c> | ||
|
||
RewriteEngine on | ||
|
||
# remove www | ||
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] | ||
RewriteRule ^(.*)$ http://%1/$1 [R=301,L] | ||
|
||
# filename-based cache busting | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L] | ||
|
||
</IfModule> | ||
|
||
|
||
# enable file compression | ||
<IfModule mod_deflate.c> | ||
|
||
<IfModule mod_setenvif.c> | ||
<IfModule mod_headers.c> | ||
SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ \ | ||
^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding | ||
RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding | ||
</IfModule> | ||
</IfModule> | ||
|
||
<IfModule mod_filter.c> | ||
FilterDeclare COMPRESS | ||
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/css | ||
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/html | ||
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/javascript | ||
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/plain | ||
FilterProvider COMPRESS DEFLATE resp=Content-Type $text/xml | ||
FilterProvider COMPRESS DEFLATE resp=Content-Type $application/javascript | ||
FilterChain COMPRESS | ||
FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no | ||
</IfModule> | ||
|
||
<IfModule !mod_filter.c> | ||
AddOutputFilterByType DEFLATE text/css text/html text/plain text/xml | ||
AddOutputFilterByType DEFLATE text/javascript application/javascript | ||
</IfModule> | ||
|
||
<IfModule mod_setenvif.c> | ||
BrowserMatch ^Mozilla/4 gzip-only-text/html | ||
BrowserMatch ^Mozilla/4\.0[678] no-gzip | ||
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | ||
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary | ||
</IfModule> | ||
|
||
<IfModule mod_headers.c> | ||
Header append Vary User-Agent env=!dont-vary | ||
Header append Vary Accept-Encoding | ||
</IfModule> | ||
|
||
</IfModule> | ||
|
||
|
||
# cache control | ||
<IfModule mod_expires.c> | ||
ExpiresActive on | ||
ExpiresDefault "access plus 1 month" | ||
ExpiresByType text/cache-manifest "access plus 0 seconds" | ||
ExpiresByType text/html "access plus 0 seconds" | ||
ExpiresByType application/json "access plus 0 seconds" | ||
ExpiresByType application/xml "access plus 0 seconds" | ||
ExpiresByType text/xml "access plus 0 seconds" | ||
ExpiresByType application/atom+xml "access plus 1 hour" | ||
ExpiresByType application/rss+xml "access plus 1 hour" | ||
ExpiresByType image/x-icon "access plus 1 week" | ||
ExpiresByType audio/ogg "access plus 1 month" | ||
ExpiresByType image/gif "access plus 1 month" | ||
ExpiresByType image/jpeg "access plus 1 month" | ||
ExpiresByType image/png "access plus 1 month" | ||
ExpiresByType video/mp4 "access plus 1 month" | ||
ExpiresByType video/ogg "access plus 1 month" | ||
ExpiresByType video/webm "access plus 1 month" | ||
ExpiresByType text/x-component "access plus 1 month" | ||
ExpiresByType application/vnd.ms-fontobject "access plus 1 month" | ||
ExpiresByType application/x-font-ttf "access plus 1 month" | ||
ExpiresByType application/x-font-woff "access plus 1 month" | ||
ExpiresByType font/opentype "access plus 1 month" | ||
ExpiresByType image/svg+xml "access plus 1 month" | ||
ExpiresByType application/javascript "access plus 1 year" | ||
ExpiresByType text/css "access plus 1 year" | ||
</IfModule> |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.