Paul Querna
13424c5f6e
- Remove unneeded cast.
...
Reported by: Garrett Rooney
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@190547 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 01:50:27 +00:00
Paul Querna
d4293052e2
- Partial revert of revision 190535. Remove const from tempfile, since apr_file_mktemp() requires it.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@190536 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 00:23:13 +00:00
Paul Querna
e54924f2ac
* cache/mod_disk_cache.c: Make most members of disk_cache_object into const char*. This removes the need to cast the const out in several places.
...
* cache/mod_cache.h: Make cache_object.key a const.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@190535 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 00:16:48 +00:00
Paul Querna
605cba8fa8
- Remove unused dirlevels and dirlength from the cache info structure.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@190534 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 00:08:09 +00:00
Paul Querna
e4ef99743c
Based on feedback from dev@httpd, store Vary headers inside the '.header' file.
...
These Vary headers are used to build a new hash for a URL, based on the
client's headers. This allows mod_disk_cache to store many variations of one
URI, where previously it would only store a single variant.
htcacheclean needs to be updated to understand the new file format. I plan on
updating htcacheclean in the next couple days.
PR: 35211
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@190530 13f79535-47bb-0310-9956-ffa450edef68
2005-06-13 23:17:52 +00:00
Paul Querna
4ae5658935
- link/unlink are not called directly, so we do not need this extra header.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@190047 13f79535-47bb-0310-9956-ffa450edef68
2005-06-11 00:33:48 +00:00
Paul Querna
0d46d695a2
- Use apr_file_mktemp() and rename the header data file to its final location, instead of opening it and then writing it out as we go. Should prevent race conditions on busy servers.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@190043 13f79535-47bb-0310-9956-ffa450edef68
2005-06-11 00:26:19 +00:00
Paul Querna
85015ced14
'generate_name' is too generic to be in the public symbols. Rename it to ap_cache_generate_name. No functional changes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@179877 13f79535-47bb-0310-9956-ffa450edef68
2005-06-03 20:19:08 +00:00
Sander Striker
438c65986e
Tracked down by Justin Erenkrantz.
...
* modules/cache/mod_disk_cache.c
(store_headers): Stop second guessing mod_cache and just store the
headers in a new file (overwriting the old).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@156306 13f79535-47bb-0310-9956-ffa450edef68
2005-03-06 12:52:46 +00:00
Joe Orton
519b48fce1
* modules/cache/mod_disk_cache.c (store_body): Fix format string
...
warnings; print integers using _FMT strings.
* modules/cache/cache_util.c (ap_cache_check_freshness): Remove unused
variable.
* modules/cache/cache_storage.c (cache_select_url): Remove unused
variable.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@153385 13f79535-47bb-0310-9956-ffa450edef68
2005-02-11 12:16:06 +00:00
Justin Erenkrantz
441086ecfd
More work to properly handle revalidated responses correctly.
...
* modules/cache/mod_cache.c: If we add a new Expires value, tell our client;
merge in headers properly (or better than before) so that we can update the
header fields on a revalidated but with updated header fields.
* modules/cache/mod_cache.h, modules/cache/cache_storage.c:
Add preserve_orig flag to ap_cache_accept_headers to allow updating of fields.
* modules/cache/mod_disk_cache.c: Load status value from disk.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@152973 13f79535-47bb-0310-9956-ffa450edef68
2005-02-09 01:38:59 +00:00
Bradley Nicholes
f193418fa8
Make the function declaration match the prototype
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@152927 13f79535-47bb-0310-9956-ffa450edef68
2005-02-08 19:41:15 +00:00
Justin Erenkrantz
1d4c6d1c6d
Cleanup structures in mod_cache and friends to remove unused or unnecessary
...
fields. Also resolves a number of latent bugs due to the wrong fields being
accessed.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@152679 13f79535-47bb-0310-9956-ffa450edef68
2005-02-08 17:39:56 +00:00
Justin Erenkrantz
3846ec8b48
* modules/cache/mod_disk_cache.c: Properly load cached ETag from on-disk
...
structures.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151815 13f79535-47bb-0310-9956-ffa450edef68
2005-02-08 02:01:46 +00:00
Justin Erenkrantz
905cdf9f0b
Update copyright year to 2005 and standardize on current copyright owner line.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@151408 13f79535-47bb-0310-9956-ffa450edef68
2005-02-04 20:28:49 +00:00
Justin Erenkrantz
e597158021
* modules/cache/mod_disk_cache.c: Cache r->err_headers_out headers. This
...
allows CGI scripts to be properly cached.
This issue was pointed out by Sander Striker.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@126042 13f79535-47bb-0310-9956-ffa450edef68
2005-01-22 17:59:48 +00:00
Justin Erenkrantz
45fdd72155
mod_cache: Remove unimplemented CacheForceCompletion directive.
...
* modules/cache/mod_cache.h: Remove DEFAULT_CACHE_COMPLETION #define and
complete-related vars.
* modules/cache/mod_cache.c: Ditto.
* modules/cache/mod_disk_cache.c: Clarify error message; remove unused
complete var (unrelated to CacheForceCompletion removal).
* docs/manual/mod/mod_cache.xml.ja, docs/manual/mod/mod_cache.xml.ko,
docs/manual/mod/mod_cache.xml: Remove references to CacheForceCompletion.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@125573 13f79535-47bb-0310-9956-ffa450edef68
2005-01-19 00:19:58 +00:00
Jean-Frederic Clere
d850e22dcb
util_charset.h has already the needed #if APR_CHARSET_EBCDIC.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@124224 13f79535-47bb-0310-9956-ffa450edef68
2005-01-05 16:16:07 +00:00
Jean-Frederic Clere
af7e1482aa
Add including of util_charset.h otherwise ap_hdrs_from_ascii is not defined.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@124080 13f79535-47bb-0310-9956-ffa450edef68
2005-01-04 09:58:01 +00:00
Justin Erenkrantz
63dd4623e1
At long last, promote mod_cache and friends out of experimental/.
...
Also, take quick pass through docs files to remove experimental label for them.
Reviewed by: Paul Querna, Bill Stoddard, Justin Erenkrantz
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106737 13f79535-47bb-0310-9956-ffa450edef68
2004-11-27 19:06:48 +00:00