Limit output filter by response code
am 01.11.2009 02:42:02 von Brian MearnsI'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
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org