Enable GZipping of Stylesheet Templates
Posted: 06 June 2008 08:08 AM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  50
Joined  03-21-2006

What the title says really.

For some reason EE doesn’t gzip stylesheet templates, which can make a big difference on high-traffic sites.

The fact that they’re served up by EE without a CSS filename extension also means that an .htaccess directive can’t be used instead (if I’m wrong about this, please, someone correct me).

Thanks,
Stephen

 Signature 

Stephen Lewis
Manifest New Media : Web design, web development, and internet marketing

Profile
 
 
Posted: 06 June 2008 08:45 AM   [ Ignore ]   [ # 1 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  607
Joined  07-02-2007

How about putting your CSS as standalone file instead of inside EE templates. (it’s much better/faster)

 Signature 

Addons:
» Crawltrack Track Google/Yahoo/etc on your site
» EntryData (Get Custom_fields/etc without weblog tag)
» reCAPTCHA Extension
» Rewrite Redirect URL’s to new ones (301/302/etc)

See all my addons

Profile
 
 
Posted: 06 June 2008 09:39 AM   [ Ignore ]   [ # 2 ]  
Grad Student
Avatar
Rank
Total Posts:  50
Joined  03-21-2006

Hey Victor,

How about putting your CSS as standalone file instead of inside EE templates. (it’s much better/faster)

I typically do that, but then have to faff about with .htaccess gzip directives to get it all working. It just seems like a strange omission in EE, hence the FR.

Cheers,
Stephen

 Signature 

Stephen Lewis
Manifest New Media : Web design, web development, and internet marketing

Profile
 
 
Posted: 06 June 2008 03:53 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  122
Joined  12-31-2005

It would seem that not all servers have GZip enabled; my server (freeBSD) does not. The techs have told me that it can contribute to the unreliability/instability of the server in certain circumstances. Not being a tech, I didn’t push it further

Profile
 
 
Posted: 06 June 2008 04:14 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  13102
Joined  05-15-2004

Obviously, EE (or Apache, for that matter) will only Gzip content if 1) the server supports it and 2) the client indicates that he can deal with such content. That’s not the issue at stake, though.

 Signature 

Everything will be good in the end. If it’s not good, it’s not the end.

Profile
MSG
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 10:33 AM
Total Registered Members: 61034 Total Logged-in Users: 34
Total Topics: 73817 Total Anonymous Users: 15
Total Replies: 398203 Total Guests: 494
Total Posts: 472020    
Members ( View Memberlist )
Newest Members:  Espenshawnblancid3abonnieshulldkrapejleijenaartr309purpleoctopusKlaxsonalexwind