forked from GithubBackups/tinyib
Making the .htaccess a little more useful
This commit is contained in:
parent
be532e13b0
commit
5904cef0e4
19
.htaccess
19
.htaccess
@ -1,11 +1,28 @@
|
|||||||
DirectoryIndex index.html
|
DirectoryIndex index.html
|
||||||
|
Options -Indexes
|
||||||
AddCharset UTF-8 .html
|
AddCharset UTF-8 .html
|
||||||
AddCharset UTF-8 .php
|
AddCharset UTF-8 .php
|
||||||
|
|
||||||
<IfModule mod_headers.c>
|
<IfModule mod_headers.c>
|
||||||
|
Header unset ETag
|
||||||
<Files *.html>
|
<Files *.html>
|
||||||
Header add Pragma "no-cache"
|
Header add Pragma "no-cache"
|
||||||
Header add Cache-Control "no-cache"
|
Header add Cache-Control "no-cache"
|
||||||
Header unset Vary
|
Header unset Vary
|
||||||
</Files>
|
</Files>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
<IfModule mod_expires.c>
|
||||||
|
ExpiresActive On
|
||||||
|
ExpiresByType image/x-icon "access plus 2592000 seconds"
|
||||||
|
ExpiresByType image/gif "access plus 2592000 seconds"
|
||||||
|
ExpiresByType image/jpeg "access plus 2592000 seconds"
|
||||||
|
ExpiresByType image/png "access plus 2592000 seconds"
|
||||||
|
ExpiresByType text/css "access plus 604800 seconds"
|
||||||
|
ExpiresByType text/javascript "access plus 216000 seconds"
|
||||||
|
ExpiresByType application/x-javascript "access plus 216000 seconds"
|
||||||
|
</ifModule>
|
||||||
|
|
||||||
|
<IfModule mod_deflate.c>
|
||||||
|
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
|
||||||
|
</ifmodule>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user