]> granicus.if.org Git - apache/commit
Caching content from sources where Content-Length is not specified
authorMartin Kraemer <martin@apache.org>
Thu, 18 Mar 2004 21:40:12 +0000 (21:40 +0000)
committerMartin Kraemer <martin@apache.org>
Thu, 18 Mar 2004 21:40:12 +0000 (21:40 +0000)
commit8b8027affa8342cbbd00f1bdf083d904e4d9bbbb
treeb5feaa96a25fba674de85d56ee4391818bccdc53
parent8915b61c79ac5a865ee19e8816511128ec0f1892
Caching content from sources where Content-Length is not specified
(these were passed through uncached until now):

This needed additional checks for CacheMinFileSize and CacheMaxFileSize
after the response has completed. That means that we are checking at two
places now:
-> when the C-L is known, we check before we cache
-> when it is unknown we check "on-the-way" for CacheMaxFileSize, and
   after caching completion for CacheMinFileSize

We now compare the actual size of the cached copy against the C-L
header, and discard it if the two don't match.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103026 13f79535-47bb-0310-9956-ffa450edef68
modules/experimental/mod_disk_cache.c