Skip to content

Commit

Permalink
updating .htaccess
Browse files Browse the repository at this point in the history
with  header unset pragma and some changes
  • Loading branch information
santo007 committed Jan 6, 2015
1 parent bd9b477 commit 86630eb
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions htaccess/.htaccess
@@ -1,6 +1,12 @@
#CSS-JS-Booster Start#################################################
#Turn ETagging off
FileETag none
Header unset Pragma
FileETag None
Header unset ETag

<FilesMatch "\\.(js|css|html|htm|php|xml|)$">
SetOutputFilter DEFLATE
</FilesMatch>

#Turn ETagging on for Booster PHP files
<FilesMatch ".*booster_.+\.php$">
Expand Down Expand Up @@ -30,6 +36,17 @@ Satisfy any
ExpiresByType image/x-icon "access plus 1 years"
</IfModule>

<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

#Alternative caching using Apache's "mod_headers", if it's installed.
#Caching of common files - ENABLED
<IfModule mod_headers.c>
Expand All @@ -41,4 +58,4 @@ Header set Cache-Control "max-age=2592000, public"
#Header set Cache-Control "max-age=0, public"
#</FilesMatch>
</IfModule>
#CSS-JS-Booster End#################################################
#CSS-JS-Booster End#################################################

0 comments on commit 86630eb

Please sign in to comment.