Return to Snippet

Revision: 29335
at July 27, 2010 09:30 by terrencewood


Initial Code
# Begin performance rules

<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>

<ifModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/x-javascript
</ifModule>

<ifModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 1 seconds"
  ExpiresByType image/gif "access plus 3 months"
  ExpiresByType image/jpeg "access plus 3 months"
  ExpiresByType image/png "access plus 3 months"
  ExpiresByType image/ico "access plus 3 months"
  ExpiresByType image/icon "access plus 3 months"
  ExpiresByType image/x-icon "access plus 3 months"
  ExpiresByType text/css "access plus 3 months"
  ExpiresByType text/javascript "access plus 3 months"
  ExpiresByType application/x-javascript "access plus 3 months"
</ifModule>



<ifModule mod_headers.c>
	Header unset ETag
	Header unset Last-Modified
	<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4|js|css)$">
	Header set Cache-Control "public, no-transform"
	</FilesMatch>

</ifModule>
FileETag None

#end performance rules

Initial URL

                                

Initial Description

                                

Initial Title
htaccess perfromance rules

Initial Tags
htaccess

Initial Language
Apache