You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Anthony J. Biacco" <ab...@formatdynamics.com> on 2009/05/19 19:39:01 UTC

[users@httpd] caching with compression

Hi,

I'm using 2.2.11 on rhel 5. I'm doing apache disk caching of a couple of
my tomcat apps, and apache memory caching for my static web files.
I now have started doing compression of said files and webapps (which
all fall under a javascript content type).
Problem is, apache is now creating a .vary cache file/dir for what seems
like every single request, which is just negating the caching
altogether.
I'm seeing this message in the error log, which I suspect is the cause.
	[Tue May 19 11:19:28 2009] [debug] cache_storage.c(257):
cache_select_url(): Vary header mismatch.
I'm not setting the Vary header for User-Agent, and even when I'm not,
it's still setting the Vary: Accept-Encoding header.
Even if I set the env. of force-no-vary on these cached urls, I still
get the error and see .vary cache dirs created, which I don't quite
understand (I can confirm NOT  seeing the Vary: header in the HTTP
response)

Any advice is appreciated.

-Tony
---------------------------
Manager, IT Operations
Format Dynamics, Inc.
303-573-1800x27
abiacco@formatdynamics.com
http://www.formatdynamics.com


---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org