Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Q: mod_deflate/apache2 - disable for specified scripts

Status
Not open for further replies.

danomac

IS-IT--Management
Aug 2, 2002
731
AM
I've enabled mod_deflate for text/html, but I do have a question. Is it possible to tell mod_deflate to ignore two scripts from compression?

i.e. ignore a.php and b.php from compression. While these scripts can be viewed by a browser, it is also used by other scripts on a seperate server which isn't gzip-aware.

Of course I will make those other scripts gzip-aware but I just don't have the time to do that right now and am looking for a quick solution.
 
I solved my own problem. I changed the headers from the php scripts in question and set apache to compress only text/html.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top