|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
My setup: Linux 2.4.18 w/ tux2-full-2.4.18-final-A3 tux utils 2.2.5 front end: Tux (serving all html and images) back end: Apache 1.3.24 w/ mod_perl 1.26 and PHP 4.1.2 Tux is listening on port 80. Apache is on 8080 on 127.0.0.1Everything is working fine for the most part. However, I am hosting a user forum site (using phpBB 2.0) for some friends and it has suddenly stopped working correctly. Namely, it seems the HTTP headers are being ignored and IE is caching everything served by Apache/PHP (i.e. /index.php). I have checked that the correct headers are being received on the client (see below):
-- [greg] [~] > telnet callandor 80 Trying 184.108.40.206... Connected to callandor.whalin.com. Escape character is '^]'. HEAD /forums/index.php HTTP/1.1 Host: uccforum.whalin.com HTTP/1.1 200 OK Date: Tue, 16 Apr 2002 15:37:41 GMT Server: Apache/1.3.24 (Unix) mod_perl/1.26 PHP/4.1.2 X-Powered-By: PHP/4.1.2Set-Cookie: phpbb2mysql_data=s%3A0%3A%22%22%3B; expires=Wed, 16-Apr-03 15:37:41 GMT; path=/
Set-Cookie: phpbb2mysql_sid=2464b0b6719b6ca7a6d0ecbc6a46c43f; path=/ Cache-Control: private, pre-check=0, post-check=0, max-age=0 Expires: Tue, 16 Apr 2002 15:37:41 GMT Last-Modified: Tue, 16 Apr 2002 15:37:41 GMT Connection: close Content-Type: text/html Connection closed by foreign host. [greg] [~] > --Yet, all browsers seem to be caching the pages. With IE, even have to CTRL-Reload to get the page to load from the server. Obviously, with a forum, this is pretty troublesome (new posts don't show up).
Now, I was able to solve this problem by shutting off etags and last modified generation in Tux ...
echo 0 > /proc/sys/net/tux/generate_etags echo 0 > /proc/sys/net/tux/generate_last_modNow, everything works like it should. Or no it does not! Now, it seems that no images served by tux are being cached client side. This is obviously not what I want either.
So, my question is this. Why is tux interfering with caching directives for pages served by Apache (or is it?)? Any ideas as to what I am seeing here?
Thanks! Greg -- Gregory Whalin email@example.com
[Older Fedora Users Mail] [Home] [Fedora Legacy] [Fedora Desktop] [iPod Nano] [ATA RAID] [Fedora Bible] [Fedora Marketing] [Fedora Mentors] [Fedora Packaging] [Fedora SELinux] [Big List of Linux Books] [Yosemite News] [Yosemite Photos] [KDE Users] [Fedora Tools] [Fedora Docs]