RE: [users@httpd] "Expires" and "Cache-Control" don't work properly

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

 



httpd -l only shows statically linked modules; If you have a "CacheEnable disk" statement somewhere in your conf which is not enclosed in <IfModule ...> and you do not get an error, and you cache file structure does get created, then your cache modules are most probably loaded.
 
Rather than _assuming_ that things are "taken from cache", I would recommend that you gain certainty by using a tool like "HTTP Watch" with IE to see what IE actually does, or/and use a network sniffer (snoop, Ethereal) to see what is actually transmitted over the network.
 
HTTP Watch allows you to see the contents of the stream received from the server, see cookies, headers, whether a page was fetched from cache etc. It's a very handy tool in debugging such issues.
 
If you cannot change the application so it sets the required headers, then you may need to build that two-stage rocket I mentioned.
 
You would need two virtual hosts:
- VH1 would accept the requests from the clients, do ProxyPass to the second rocket stage and cache any cacheable response.
- VH2 would accept the requests from the first stage (could listen on localhost only), pass the requests to the application, set the apropriate headers and return the response with headers determining cacheability.


BR
-ascs
________________________________

From: Diana Horvitz [mailto:Diana.Horvitz@xxxxxxxxxxxxxx] 
Sent: Tuesday, May 10, 2005 8:32 AM
To: 'users@xxxxxxxxxxxxxxxx'
Subject: RE: [users@httpd] "Expires" and "Cache-Control" don't work properly



Hi Axel, 

Thanks for your answer. 
Running "httpd -l", I don't see neither mod_cache nor mod_disk_cache - can the problem be here? 

The elements are cached by the browser (both IE and NS 7). 
I'll try to clarify: 
- The URLs are added to the history. If you try to access one of such URLs from the history, the request goes to the application and it knows how to deal with the request.

- However, if you open the list under the browser's "Back" button and click on one of the entries there, the page is displayed, but the request never reaches the application, therefore I assume it is taken from the cache.

- In addition, I have found that, once you click on one of those entries (and get the page), all the entries following that one disappear.

I can't have the application set the appropriate headers. I have also tried META tags with no success. 
If I could have the application set the headers, how do I tell Apache not to override them? 

I have tried the configuration you sent, it doesn't seem to help. 

Thanks again, any idea is welcome 

Diana 

---------------------------------------------------------------------
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