Also, I see Q recommended setting it at 4. But as it goes from 0-9, i'm wondering why 4 is the best number? Would it be a problem if you set it higher? I'm just trying to get the fastest page speed without destroying my site.

Code: Select all
Header unset ETag
FileETag None
<FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css)$">
Header unset Last-Modified
Header set Expires "Fri, 21 Dec 2100 00:00:00 GMT"
Header set Cache-Control "public, no-transform"
</FilesMatch>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/javascript text/plain text/xml application/xml text/css application/x-javascript application/javascript
</IfModule>
Cheers mate, thanks a bunch for that. I'm not sure if I have Mod_Deflate, but I'm assuming I do. I'm with a pretty up to date hosting company. So would I do this on top of using the Gzip feature in the OpenCart admin panel, or would I just do one or the other?JAY6390 wrote:The higher the number the longer it takes to zip it. If you have mod_deflate you can just put the following at the top of your .htaccess fileCode: Select all
Header unset ETag FileETag None <FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css)$"> Header unset Last-Modified Header set Expires "Fri, 21 Dec 2100 00:00:00 GMT" Header set Cache-Control "public, no-transform" </FilesMatch> <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/javascript text/plain text/xml application/xml text/css application/x-javascript application/javascript </IfModule>
Screen shot 2010-11-19 at 7.32.21 PM.png (145.48 KiB) Viewed 7176 times
Thanks for this!JAY6390 wrote:The higher the number the longer it takes to zip it. If you have mod_deflate you can just put the following at the top of your .htaccess fileCode: Select all
Header unset ETag FileETag None <FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css)$"> Header unset Last-Modified Header set Expires "Fri, 21 Dec 2100 00:00:00 GMT" Header set Cache-Control "public, no-transform" </FilesMatch> <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/javascript text/plain text/xml application/xml text/css application/x-javascript application/javascript </IfModule>
Norman in 't Veldt
Moderator OpenCart Forums
_________________ READ and Search BEFORE POSTING _________________
Our FREE search: Find your answer FAST!.
[How to] BTW + Verzend + betaal setup.
1.4.9.4
Code: Select all
<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>
gzip.png (206.58 KiB) Viewed 4494 times
EMail: support@ocaddons.com
All mods | OpenCart Bulk Related Products Ultimate Edition |GeoIP hide Prices / no add to cart by country| CSS override | Direct link to checkout / skip add to cart / buy now link | AUTO pilot - reward & purchase points
Users browsing this forum: No registered users and 23 guests