You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2002/09/12 15:25:19 UTC

DO NOT REPLY [Bug 12574] New: - Broken images comes from mod_proxy when caching www.google.com.ru

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12574>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12574

Broken images comes from mod_proxy when caching www.google.com.ru

           Summary: Broken images comes from mod_proxy when caching
                    www.google.com.ru
           Product: Apache httpd-1.3
           Version: 1.3.26
          Platform: All
               URL: http://www.google.com.ru
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_proxy
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: sergey1369@narod.ru


Hello.

There is a problem with images loaded from www.google.com.ru via mod_proxy
cache. Basically, they are _not_ cached and looks good because of
2038 year.

--- src/main/util_date.c.orig   Wed Sep 11 23:37:25 2002
+++ src/main/util_date.c        Wed Sep 11 11:15:44 2002
@@ -146,7 +146,7 @@
 
     year = t->tm_year;
 
-    if (year < 70 || ((sizeof(time_t) <= 4) && (year >= 138)))
+    if (year < 70 || ((sizeof(time_t) <= 4) && (year > 138)))
        return BAD_DATE;
 
     /* shift new year to 1st March in order to make leap year calc easy */

Second, after this patch they are broken during refresh (304) due to 2 errorneus
http headers coming from GWS/2.0:
Content-Type: text/html
Content-Length: 0

The most simple way to fix just remove this headers.

@@ -530,6 +530,11 @@
         resp_hdrs = ap_make_table(p, 20);
     }
 
+    if (r->status == HTTP_NOT_MODIFIED) {
+      ap_table_unset(resp_hdrs,"Content-Type");
+      ap_table_unset(resp_hdrs,"Content-Length");
+    }
+
     ap_kill_timeout(r);
 
     /*

With best regards, Sergey.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org