Limit output filter by response code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm using external filters to minify javascript and CSS files as they
head out of the server. The minifier takes a good 500ms to run,
causing serious drag. So I put Squid in front of the server and
configured it as a caching proxy. The problem is, the filters are
running even on "304 Not Modified" responses, meaning there isn't
actually any content to minify.

So I want to be able to configure whether or not the filter is used
based on the response code. Is this possible? Alternatively, if I can
access the response code in the ext filter (as an env var or command
line parameter, for instance), then I can make the decision there.

Any help would be really great.
Thanks,
-Brian

-- 
Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from: http://keys.gnupg.net

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux