Re: js/css compression helpers for cakephp 2.0

2012-09-26 Thread Glauco
You can use my plugin for Js and CSS compression, check out it on GitHub:
https://github.com/glaucocustodio/easy-compressor-plugin



--
View this message in context: 
http://cakephp.1045679.n5.nabble.com/js-css-compression-helpers-for-cakephp-2-0-tp5034728p5711391.html
Sent from the CakePHP mailing list archive at Nabble.com.

-- 
Like Us on FacekBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.




Re: js/css compression helpers for cakephp 2.0

2011-12-01 Thread majna
There's a shell task for that I think.

On Wednesday, November 30, 2011 10:30:28 PM UTC+1, euromark wrote:
>
> I only thing I am wondering about that plugin is, whether it supports
> assert compression by using the default
> $this->Html->css/script syntax
> Or if one would have to completely rewrite all views/layouts here. (to
> $this->AssetCompress->...)
> From the look into the code and docs it seems this is necessary (no
> beforeRender hook to catch them and automatically process them if the
> helper is included etc).
>
>
> On 30 Nov., 20:46, mikeottinger  wrote:
> > Thanks guys, I'll give Mark Story's plugin a try
> > (https://github.com/markstory/asset_compress/tree/2.0). This supports 
> YUI
> > Compression which I was particularly looking for. Thanks for the info.
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: js/css compression helpers for cakephp 2.0

2011-12-01 Thread Sam Sherlock
true but that being the case has other benefits too.

and asset_compress has many options and you can customize it to your every
whim *almost*



On 30 November 2011 21:30, euromark  wrote:

> I only thing I am wondering about that plugin is, whether it supports
> assert compression by using the default
> $this->Html->css/script syntax
> Or if one would have to completely rewrite all views/layouts here. (to
> $this->AssetCompress->...)
> From the look into the code and docs it seems this is necessary (no
> beforeRender hook to catch them and automatically process them if the
> helper is included etc).
>
>
> On 30 Nov., 20:46, mikeottinger  wrote:
> > Thanks guys, I'll give Mark Story's plugin a try
> > (https://github.com/markstory/asset_compress/tree/2.0). This supports
> YUI
> > Compression which I was particularly looking for. Thanks for the info.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group
> at http://groups.google.com/group/cake-php
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: js/css compression helpers for cakephp 2.0

2011-11-30 Thread euromark
I only thing I am wondering about that plugin is, whether it supports
assert compression by using the default
$this->Html->css/script syntax
Or if one would have to completely rewrite all views/layouts here. (to
$this->AssetCompress->...)
>From the look into the code and docs it seems this is necessary (no
beforeRender hook to catch them and automatically process them if the
helper is included etc).


On 30 Nov., 20:46, mikeottinger  wrote:
> Thanks guys, I'll give Mark Story's plugin a try
> (https://github.com/markstory/asset_compress/tree/2.0). This supports YUI
> Compression which I was particularly looking for. Thanks for the info.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: js/css compression helpers for cakephp 2.0

2011-11-30 Thread mikeottinger
Thanks guys, I'll give Mark Story's plugin a try 
(https://github.com/markstory/asset_compress/tree/2.0). This supports YUI 
Compression which I was particularly looking for. Thanks for the info.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: js/css compression helpers for cakephp 2.0

2011-11-30 Thread euromark
I was already wondering about the AssetHelper some time ago
http://stackoverflow.com/questions/8233532/asset-helper-and-protected-view-scripts-in-cakephp-2-0/8249645#8249645
seems like McCurry's helper would need a massive rewrite in order to
work again

so mark story's would probably be the best option here
mark


On 30 Nov., 09:47, Andras Kende  wrote:
> https://github.com/markstory/asset_compress/tree/2.0
>
> Andras Kende
>
> On Nov 30, 2011, at 12:52 AM, mikeottinger wrote:
>
>
>
>
>
>
>
> > Hi All, I've been looking at cakephp 2.0 and wondered if any of the 
> > existing plugins written previously for js/css compression worked with 
> > cakephp 2.0. Does anyone have any plugins or techniques in general they can 
> > share on this?
>
> > Thanks!
>
> > --
> > Our newest site for the community: CakePHP Video 
> > Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: js/css compression helpers for cakephp 2.0

2011-11-30 Thread Andras Kende
https://github.com/markstory/asset_compress/tree/2.0

Andras Kende

On Nov 30, 2011, at 12:52 AM, mikeottinger wrote:

> Hi All, I've been looking at cakephp 2.0 and wondered if any of the existing 
> plugins written previously for js/css compression worked with cakephp 2.0. 
> Does anyone have any plugins or techniques in general they can share on this?
> 
> Thanks!
> 
> -- 
> Our newest site for the community: CakePHP Video Tutorials 
> http://tv.cakephp.org 
> Check out the new CakePHP Questions site http://ask.cakephp.org and help 
> others with their CakePHP related questions.
>  
>  
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: js/css compression helpers for cakephp 2.0

2011-11-30 Thread Miles J
You could easily convert this to Cake 2: https://github.com/mcurry/asset

On Nov 29, 10:52 pm, mikeottinger  wrote:
> Hi All, I've been looking at cakephp 2.0 and wondered if any of the
> existing plugins written previously for js/css compression worked with
> cakephp 2.0. Does anyone have any plugins or techniques in general they can
> share on this?
>
> Thanks!

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: JS / CSS Compression

2009-10-10 Thread robust solution

Dear Dave,

Cake combines, yes, minifies yes... caches yes...

but when you cache the minified|combines|both version of javascript,
why don't you  cache the gzipped version also?
use the magic statement
gzencode($content_of_the_dot_js_file,9,FORCE_GZIP);
and put what it returns in a .js.gz filename

then when you know that the client (web browser) accepts gzip, print
the content of the gzipped version not the content of combined|
minified one

As @Miles told you, you just have to test if the client accepts gzip
compression (I think most of the browsers do), and you should be
caching also the the gzipped version, so either you print (ass http
not as echo) the content of the non gzipped (minified,combined,etc...)
version or the gzipped version (which is the usual case)

The worst case scenario is when apache allows you to use the htaccess
as minimum required by cake so stick to this as much as possible
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: JS / CSS Compression

2009-10-09 Thread Dave Maharaj :: WidePixels.com

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_125509.css
* js/min/jquery_jqueryform_ofl_125509.js


I have changed my htaccess to:

# BEGIN Compress text files

  
SetOutputFilter DEFLATE
  

# END Compress text files
# BEGIN Expire headers

  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"

# END Expire headers
# BEGIN Cache-Control Headers

  
Header set Cache-Control "max-age=2592000, public"
  
  
Header set Cache-Control "max-age=604800, public"
  
  
Header set Cache-Control "max-age=216000, private"
  
  
Header set Cache-Control "max-age=600, private, must-revalidate"
  

# END Cache-Control Headers
# BEGIN Turn ETags Off

  Header unset ETag

FileETag None
# END Turn ETags Off
# BEGIN Remove Last-Modified Header

  Header unset Last-Modified

# END Remove Last-Modified Header

 

-Original Message-
From: majna [mailto:majna...@gmail.com] 
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"
 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_125509.css
> *       jquery_jqueryform_ofl_125509.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:
>
> 
>   # compress content with type html, text, and css
>   AddOutputFilterByType
>
>   AddOutputFilterByType DEFLATE text/html text/plain text/xml
>
>   
>     # properly handle requests coming from behind proxies
>     Header append Vary User-Agent
>   
> 
>
> 
>   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"
> 
>
> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: JS / CSS Compression

2009-10-09 Thread majna

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"
 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_125509.css
> *       jquery_jqueryform_ofl_125509.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:
>
> 
>   # compress content with type html, text, and css
>   AddOutputFilterByType
>
>   AddOutputFilterByType DEFLATE text/html text/plain text/xml
>
>   
>     # properly handle requests coming from behind proxies
>     Header append Vary User-Agent
>   
> 
>
> 
>   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"
> 
>
> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: JS / CSS Compression

2009-10-09 Thread Dave Maharaj :: WidePixels.com

I see this 

Response Headers
DateFri, 09 Oct 2009 19:26:11 GMT
Server  Apache/2.2.13 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2
mod_auth_passthrough/2.1 FrontPage/5.0.2.2635
X-Powered-ByPHP/5.2.9
Cache-Control   must-revalidate
Accept-Encoding gzip, deflate
Expires Fri, 09 Oct 2009 19:26:10 GMT
P3P CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Content-Encodinggzip
VaryAccept-Encoding
Keep-Alive  timeout=10, max=30
Connection  Keep-Alive
Transfer-Encoding   chunked
Content-Typetext/html; charset: UTF-8

 

-Original Message-
From: Miles J [mailto:mileswjohn...@gmail.com] 
Sent: October-09-09 4:40 PM
To: CakePHP
Subject: Re: JS / CSS Compression


Well look at your request/response headers. Is gzip compression even
working?

On Oct 9, 11:34 am, "Dave Maharaj :: WidePixels.com"
 wrote:
> Could you explain "doing it the cake way"?
>
> Cake combines the scripts just fine. but after that?
>
> -Original Message-
> From: robust solution [mailto:i...@robustsolution.net]
> Sent: October-09-09 12:20 PM
> To: CakePHP
> Subject: Re: JS / CSS Compression
>
> Dear Dave,
>
> What I recommend you is to never rely on apache,
>
> do it the cake way...please it is too easy
>
> On Oct 9, 5:41 pm, "Dave Maharaj :: WidePixels.com"
>  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_125509.css
> > *       jquery_jqueryform_ofl_125509.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:
>
> > 
> >   # compress content with type html, text, and css
> >   AddOutputFilterByType
>
> >   AddOutputFilterByType DEFLATE text/html text/plain text/xml
>
> >   
> >     # properly handle requests coming from behind proxies
> >     Header append Vary User-Agent
> >   
> > 
>
> > 
> >   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"
> > 
>
> > 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: JS / CSS Compression

2009-10-09 Thread Miles J

Well look at your request/response headers. Is gzip compression even
working?

On Oct 9, 11:34 am, "Dave Maharaj :: WidePixels.com"
 wrote:
> Could you explain "doing it the cake way"?
>
> Cake combines the scripts just fine. but after that?
>
> -Original Message-
> From: robust solution [mailto:i...@robustsolution.net]
> Sent: October-09-09 12:20 PM
> To: CakePHP
> Subject: Re: JS / CSS Compression
>
> Dear Dave,
>
> What I recommend you is to never rely on apache,
>
> do it the cake way...please it is too easy
>
> On Oct 9, 5:41 pm, "Dave Maharaj :: WidePixels.com"
>  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_125509.css
> > *       jquery_jqueryform_ofl_125509.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:
>
> > 
> >   # compress content with type html, text, and css
> >   AddOutputFilterByType
>
> >   AddOutputFilterByType DEFLATE text/html text/plain text/xml
>
> >   
> >     # properly handle requests coming from behind proxies
> >     Header append Vary User-Agent
> >   
> > 
>
> > 
> >   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"
> > 
>
> > 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



RE: JS / CSS Compression

2009-10-09 Thread Dave Maharaj :: WidePixels.com

Could you explain "doing it the cake way"? 

Cake combines the scripts just fine. but after that?

-Original Message-
From: robust solution [mailto:i...@robustsolution.net] 
Sent: October-09-09 12:20 PM
To: CakePHP
Subject: Re: JS / CSS Compression


Dear Dave,

What I recommend you is to never rely on apache,

do it the cake way...please it is too easy

On Oct 9, 5:41 pm, "Dave Maharaj :: WidePixels.com"
 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_125509.css
> *       jquery_jqueryform_ofl_125509.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:
>
> 
>   # compress content with type html, text, and css
>   AddOutputFilterByType
>
>   AddOutputFilterByType DEFLATE text/html text/plain text/xml
>
>   
>     # properly handle requests coming from behind proxies
>     Header append Vary User-Agent
>   
> 
>
> 
>   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"
> 
>
> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: JS / CSS Compression

2009-10-09 Thread robust solution

Dear Dave,

What I recommend you is to never rely on apache,

do it the cake way...please it is too easy

On Oct 9, 5:41 pm, "Dave Maharaj :: WidePixels.com"
 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_125509.css
> *       jquery_jqueryform_ofl_125509.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:
>
> 
>   # compress content with type html, text, and css
>   AddOutputFilterByType
>
>   AddOutputFilterByType DEFLATE text/html text/plain text/xml
>
>   
>     # properly handle requests coming from behind proxies
>     Header append Vary User-Agent
>   
> 
>
> 
>   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"
> 
>
> 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 cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---