https://bz.apache.org/bugzilla/show_bug.cgi?id=69512

            Bug ID: 69512
           Summary: mod_socache_memcached loses body when entity is
                    refreshed until expires
           Product: Apache httpd-2
           Version: 2.4.37
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_socache_(dbm|dc|memcache|shmcb)
          Assignee: bugs@httpd.apache.org
          Reporter: francesco.camu...@pgmd.it
  Target Milestone: ---

Hi all,
we encounterted the same behaveour in our configuration, wich relays on
memcached as socache backend.
It seems that the cache refreshes the body only after expiration of the item.

Here is some logs (please notice Size entry changing). The requested resource
has a 5sec Expire header set by mod_expire and a Cache-Control: no-cache header
added.
[ID:Z2q1KJNvlmM2plf8Uca4ngAAAIo] [ErrID:-] [TimeStamp:24/Dec/2024 14:20:40.360
+0100] [Client:109.118.42.37] [Proxy:192.168.30.5] [Request:"GET / HTTP/1.1"]
[Status:200] [SSL:on] [Size:359] [ElapsedMs:3] [KeepAlive:0] [Referer:"-"]
[Origin:"-"] [UA:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"] [Comp:"br"]
[Cache:cache miss: attempting entity save]
[ID:Z2q1P5NvlmM2plf8Uca41QAAAIQ] [ErrID:-] [TimeStamp:24/Dec/2024 14:21:03.827
+0100] [Client:109.118.42.37] [Proxy:192.168.30.5] [Request:"GET / HTTP/1.1"]
[Status:200] [SSL:on] [Size:359] [ElapsedMs:2] [KeepAlive:0] [Referer:"-"]
[Origin:"-"] [UA:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"] [Comp:"br"]
[Cache:conditional cache hit: entity refreshed]
[ID:Z2q1RJNvlmM2plf8Uca4@gAAAJY] [ErrID:-] [TimeStamp:24/Dec/2024 14:21:08.966
+0100] [Client:109.118.42.37] [Proxy:192.168.30.5] [Request:"GET / HTTP/1.1"]
[Status:200] [SSL:on] [Size:-] [ElapsedMs:2] [KeepAlive:4] [Referer:"-"]
[Origin:"-"] [UA:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"] [Comp:"br"]
[Cache:conditional cache hit: entity refreshed]
[ID:Z2q1TuF@UQtEwiiyhJi3igAAABM] [ErrID:-] [TimeStamp:24/Dec/2024 14:21:18.679
+0100] [Client:109.118.42.37] [Proxy:192.168.30.5] [Request:"GET / HTTP/1.1"]
[Status:200] [SSL:on] [Size:-] [ElapsedMs:2] [KeepAlive:0] [Referer:"-"]
[Origin:"-"] [UA:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"] [Comp:"br"]
[Cache:conditional cache hit: entity refreshed]
[ID:Z2q1WuF@UQtEwiiyhJi3mwAAAAM] [ErrID:-] [TimeStamp:24/Dec/2024 14:21:30.920
+0100] [Client:109.118.42.37] [Proxy:192.168.30.5] [Request:"GET / HTTP/1.1"]
[Status:200] [SSL:on] [Size:-] [ElapsedMs:2] [KeepAlive:0] [Referer:"-"]
[Origin:"-"] [UA:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"] [Comp:"br"]
[Cache:conditional cache hit: entity refreshed]
[ID:Z2q1dUr7cjm0jPXWfBhJEAAAAM8] [ErrID:-] [TimeStamp:24/Dec/2024 14:21:57.810
+0100] [Client:109.118.42.37] [Proxy:192.168.30.26] [Request:"GET / HTTP/1.1"]
[Status:200] [SSL:on] [Size:359] [ElapsedMs:2] [KeepAlive:0] [Referer:"-"]
[Origin:"-"] [UA:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"] [Comp:"br"]
[Cache:cache miss: attempting entity save]

The same occurs with a conditional request raised by the client (please notice
0 Size at last entry, forced as non conditional and got a 200 response to show
than undelying cache is left empty by conditional refreshs) 
[ID:Z2q5iZNvlmM2plf8Uca9XQAAAII] [ErrID:-] [TimeStamp:24/Dec/2024 14:39:21.819
+0100] [Client:109.118.42.37] [Proxy:192.168.30.26] [Request:"GET / HTTP/1.1"]
[Status:200] [SSL:on] [Size:359] [ElapsedMs:1] [KeepAlive:0] [Referer:"-"]
[Origin:"-"] [UA:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"] [Comp:"br"]
[Cache:cache miss: attempting entity save]
[ID:Z2q5juF@UQtEwiiyhJi75gAAABI] [ErrID:-] [TimeStamp:24/Dec/2024 14:39:26.887
+0100] [Client:109.118.42.37] [Proxy:192.168.30.26] [Request:"GET / HTTP/1.1"]
[Status:304] [SSL:on] [Size:-] [ElapsedMs:2] [KeepAlive:4] [Referer:"-"]
[Origin:"-"] [UA:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"] [Comp:"br"]
[Cache:conditional cache hit: entity refreshed]
[ID:Z2q5kuF@UQtEwiiyhJi76gAAAAg] [ErrID:-] [TimeStamp:24/Dec/2024 14:39:30.351
+0100] [Client:109.118.42.37] [Proxy:192.168.30.26] [Request:"GET / HTTP/1.1"]
[Status:304] [SSL:on] [Size:-] [ElapsedMs:2] [KeepAlive:5] [Referer:"-"]
[Origin:"-"] [UA:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"] [Comp:"br"]
[Cache:conditional cache hit: entity refreshed]
[ID:Z2q5leF@UQtEwiiyhJi78gAAAAw] [ErrID:-] [TimeStamp:24/Dec/2024 14:39:33.246
+0100] [Client:109.118.42.37] [Proxy:192.168.30.26] [Request:"GET / HTTP/1.1"]
[Status:304] [SSL:on] [Size:-] [ElapsedMs:2] [KeepAlive:6] [Referer:"-"]
[Origin:"-"] [UA:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"] [Comp:"br"]
[Cache:conditional cache hit: entity refreshed]
[ID:Z2q5m-uor94cHyVJVmlcswAAAEs] [ErrID:-] [TimeStamp:24/Dec/2024 14:39:39.519
+0100] [Client:109.118.42.37] [Proxy:192.168.30.26] [Request:"GET / HTTP/1.1"]
[Status:200] [SSL:on] [Size:-] [ElapsedMs:2] [KeepAlive:0] [Referer:"-"]
[Origin:"-"] [UA:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
(KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0"] [Comp:"br"]
[Cache:conditional cache hit: entity refreshed]

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to