I've also noticed for requests that don't get pulled from apache's disk cache (i.e. are sent on to my tomcat server for new data), are the only ones that get sent out compressed. -Tony --------------------------- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abiacco@xxxxxxxxxxxxxxxxxx http://www.formatdynamics.com > -----Original Message----- > From: Anthony J. Biacco > Sent: Tuesday, May 19, 2009 11:39 AM > To: 'users@xxxxxxxxxxxxxxxx' > Subject: 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@xxxxxxxxxxxxxxxxxx > 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx