Nope still no luck. But with htaccess files thruout the site...which one
should I be editing I guess I should have asked first.
Same message:
Grade C on Compress components with gzip
There are 2 plain text components that should be sent compressed
* css/min/styles_typography_1255097777.css
* js/min/jquery_jqueryform_ofl_1255097777.js
I have changed my htaccess to:
# BEGIN Compress text files
<IfModule mod_deflate.c>
<FilesMatch "\.(css|js|x?html?|php)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>
# END Compress text files
# BEGIN Expire headers
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType image/x-icon "access plus 2592000 seconds"
ExpiresByType image/jpeg "access plus 2592000 seconds"
ExpiresByType image/png "access plus 2592000 seconds"
ExpiresByType image/gif "access plus 2592000 seconds"
ExpiresByType application/x-shockwave-flash "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"
ExpiresByType text/html "access plus 600 seconds"
ExpiresByType application/xhtml+xml "access plus 600 seconds"
</IfModule>
# END Expire headers
# BEGIN Cache-Control Headers
<IfModule mod_headers.c>
<FilesMatch "\\.(ico|jpe?g|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
<FilesMatch "\\.(css)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
<FilesMatch "\\.(js)$">
Header set Cache-Control "max-age=216000, private"
</FilesMatch>
<FilesMatch "\\.(x?html?|php)$">
Header set Cache-Control "max-age=600, private, must-revalidate"
</FilesMatch>
</IfModule>
# END Cache-Control Headers
# BEGIN Turn ETags Off
<IfModule mod_headers.c>
Header unset ETag
</IfModule>
FileETag None
# END Turn ETags Off
# BEGIN Remove Last-Modified Header
<IfModule mod_headers.c>
Header unset Last-Modified
</IfModule>
# END Remove Last-Modified Header
-----Original Message-----
From: majna [mailto:[email protected]]
Sent: October-09-09 5:53 PM
To: CakePHP
Subject: Re: JS / CSS Compression
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
application/xhtml+xml application/rss+xml application/ json text/css
text/javascript application/javascript application/x- javascript
On Oct 9, 4:41 pm, "Dave Maharaj :: WidePixels.com"
<[email protected]> wrote:
> I have the asset helper up and running. Check y-slow and everything
> gets an A except
>
> Grade C on Compress components with gzip
>
> There are 2 plain text components that should be sent compressed
>
> * /styles_typography_1255097777.css
> * jquery_jqueryform_ofl_1255097777.js
>
> Apache 2.x uses mod_deflate.
>
> The htaccess is bits from all over from reading so maybe there is a
> problem in there somewhere?
>
> I check the y-slow Statistics:
> Empty Cache
> HTTP Requests - 14
> Total Weight - 143.9K
>
> Primed Cache
> HTTP Requests - 2
> Total Weight - 2.2K
>
> Looks like the scripts are not being cached either?
>
> my /webroot/htaccess:
>
> <IfModule mod_deflate.c>
> # compress content with type html, text, and css
> AddOutputFilterByType
>
> AddOutputFilterByType DEFLATE text/html text/plain text/xml
>
> <IfModule mod_headers.c>
> # properly handle requests coming from behind proxies
> Header append Vary User-Agent
> </IfModule>
> </IfModule>
>
> <IfModule mod_expires.c>
> ExpiresActive On
> ExpiresByType text/css "access plus 10 years"
> ExpiresByType text/js "access plus 10 years"
> ExpiresByType text/javascript "access plus 10 years"
> ExpiresByType application/x-javascript "access plus 10 years"
> ExpiresByType application/javascript "access plus 10 years"
> ExpiresByType image/png "access plus 10 years"
> ExpiresByType image/gif "access plus 10 years"
> ExpiresByType image/jpeg "access plus 10 years"
> </IfModule>
>
> FileETag none
>
> Not sure why its not zipping these 2. Any ideas or help would be great.
>
> Thanks
>
> Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---