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 2008/02/29 14:57:47 UTC

[Bug 44511] New: mod_cache : no-cache reponses are stored and not revalidated

https://issues.apache.org/bugzilla/show_bug.cgi?id=44511

           Summary: mod_cache : no-cache reponses are stored and not
                    revalidated
           Product: Apache httpd-2
           Version: 2.2.6
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_cache
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: esuran@generali.fr


Created an attachment (id=21603)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21603)
trace between apache and the origin server

Hello,

We use Apache 2.2.6 as a reverse proxy cache with, almong others, mod_cache,
mod_disk_cache and mod_proxy (of course).
Apache stores response from the origin server despite header "Cache-Control :
no-cache", but it does not revalidate it on subsequent requests, so it serves
stalled objects.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


[Bug 44511] mod_cache : no-cache reponses are stored and not revalidated

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44511





--- Comment #2 from Ruediger Pluem <rp...@apache.org>  2008-02-29 07:08:13 ---
Created an attachment (id=21604)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=21604)
Patch against trunk


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 44511] mod_cache : no-cache reponses are stored and not revalidated

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44511





--- Comment #4 from Ruediger Pluem <rp...@apache.org>  2008-03-02 04:35:34 ---
Committed to trunk as r632749
(http://svn.apache.org/viewvc?rev=632749&view=rev).


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


[Bug 44511] mod_cache : no-cache reponses are stored and not revalidated

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44511


Ruediger Pluem <rp...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




--- Comment #1 from Ruediger Pluem <rp...@apache.org>  2008-02-29 07:05:58 ---
Can you check if the following patch fixes your problem:

Index: modules/cache/cache_util.c
===================================================================
--- modules/cache/cache_util.c  (revision 632318)
+++ modules/cache/cache_util.c  (working copy)
@@ -235,6 +235,14 @@
     cc_cresp = apr_table_get(h->resp_hdrs, "Cache-Control");
     expstr = apr_table_get(h->resp_hdrs, "Expires");

+    if (ap_cache_liststr(NULL, cc_cresp, "no-cache", NULL)) {
+        /*
+         * The cached entity contained Cache-Control: no-cache, so treat as
+         * stale causing revalidation
+         */
+        return 0;
+    }
+
     if ((agestr = apr_table_get(h->resp_hdrs, "Age"))) {
         age_c = apr_atoi64(agestr);
     }


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


[Bug 44511] mod_cache : no-cache reponses are stored and not revalidated

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44511


Carl ROLLER <cr...@generali.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |croller@generali.fr




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 44511] mod_cache : no-cache reponses are stored and not revalidated

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44511


Eric Suran <es...@generali.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |RESOLVED
         Resolution|                            |FIXED




--- Comment #3 from Eric Suran <es...@generali.fr>  2008-03-02 02:13:21 ---
Hello Ruediger,

Your patch works fine. Thank you.
Regards,

Eric


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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