Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 23rd, 2007, 12:29 AM
Noodles23's Avatar
Noodles23 Noodles23 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Auckland, NZ
Posts: 430 Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)  Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3
Time spent in forums: 2 Days 23 h 48 m 18 sec
Reputation Power: 501
general - Gzip/deflate based on content type/browser

Is it possible to set mod_deflate or gzip to only deflate javascript and css files if the browser accepts it _and_ the browser is IE7 or above? From what I understand IE6 and below has problems with compressed js (not sure about css).

Yahoo seem to have some system in place for their yui so it does this, but I don't think they're going to share their secret.
__________________
Cooking Forums

Reply With Quote
  #2  
Old May 24th, 2007, 08:24 AM
jharnois's Avatar
jharnois jharnois is offline
mod_dev_shed
Dev Shed God 20th Plane (14500 - 14999 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,733 jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level)jharnois User rank is General (90000 - 100000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 3 Days 15 h 46 m 15 sec
Reputation Power: 978
You might be able to do this with mod_filter.
__________________
# Jeremy

Explain your problem instead of asking how to do what you decided was the solution.

Reply With Quote
  #3  
Old August 7th, 2007, 09:02 PM
Noodles23's Avatar
Noodles23 Noodles23 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Location: Auckland, NZ
Posts: 430 Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Noodles23 User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)  Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3Folding Points: 1312287 Folding Title: Super Ultimate Folder - Level 3
Time spent in forums: 2 Days 23 h 48 m 18 sec
Reputation Power: 501
If anyone was interested, this is the solution I found:

Code:
# Netscape 4.x or IE 5.5/6.0
BrowserMatch ^Mozilla/4 no-gzip
# IE 5.5 and IE 6.0 have bugs! Ignore them until IE 7.0+
BrowserMatch \bMSIE\s7 !no-gzip
# IE 6.0 after SP2 has no gzip bugs!
BrowserMatch \bMSIE.*SV !no-gzip
# Sometimes Opera pretends to be IE with "Mozila/4.0"
BrowserMatch \bOpera !no-gzip
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/x-javascript
Header append Vary User-Agent


In httpd.conf or .htaccess
Comments on this post
jabba_29 agrees: Thanks for posting your solution.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > general - Gzip/deflate based on content type/browser


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2010 by Developer Shed. All rights reserved. DS Cluster 12 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek