1
0
mirror of https://github.com/apache/httpd.git synced 2025-11-06 16:49:32 +03:00
Commit Graph

65 Commits

Author SHA1 Message Date
Jim Jagielski
69c1a5c854 Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174747 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 13:36:39 +00:00
Graham Leggett
e8f8ab7863 mod_cache: Make CacheEnable and CacheDisable configurable per
directory in addition to per server, making them work from within
a LocationMatch.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1080834 13f79535-47bb-0310-9956-ffa450edef68
2011-03-12 01:15:28 +00:00
Graham Leggett
43fc2d47c7 mod_cache: When a request other than GET or HEAD arrives, we must
invalidate existing cache entities as per RFC2616 13.10. PR 15868.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1070179 13f79535-47bb-0310-9956-ffa450edef68
2011-02-13 02:03:29 +00:00
Jeff Trawick
2ce0fcf630 follow up r1042758 and r1043011 with more fixes to use
proper example domains

(and show some respect in our mangled version of prep.ai.mit.edu
by using .edu instead of .com)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1043126 13f79535-47bb-0310-9956-ffa450edef68
2010-12-07 16:53:01 +00:00
Graham Leggett
2f74bae2d5 Rename mod_disk_cache to mod_cache_disk within the documentation.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1037244 13f79535-47bb-0310-9956-ffa450edef68
2010-11-20 15:48:51 +00:00
Graham Leggett
7b8e03425f Add documentation for mod_cache and mod_disk_cache.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1029587 13f79535-47bb-0310-9956-ffa450edef68
2010-11-01 09:50:42 +00:00
Graham Leggett
0f267cd6ad mod_cache: Optionally serve stale data when a revalidation returns a
5xx response, controlled by the CacheStaleOnError directive.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1021546 13f79535-47bb-0310-9956-ffa450edef68
2010-10-11 23:32:56 +00:00
Graham Leggett
d29eacb478 mod_cache: Allow control over the base URL of reverse proxied requests
using the CacheKeyBaseURL directive, so that the cache key can be
calculated from the endpoint URL instead of the server URL.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1003963 13f79535-47bb-0310-9956-ffa450edef68
2010-10-03 13:23:39 +00:00
Graham Leggett
5ec95ec848 mod_cache: CacheLastModifiedFactor, CacheStoreNoStore, CacheStorePrivate,
CacheStoreExpired, CacheIgnoreNoLastMod, CacheDefaultExpire, 
CacheMinExpire and CacheMaxExpire can be set per directory/location.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1003882 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02 20:57:38 +00:00
Rich Bowen
0f20df47a0 Minor nitpick - We've attempted to standardize on American spelling.
Don't much care one way or another, but being consistent is good.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1003163 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30 17:01:06 +00:00
Graham Leggett
61b7c8574b mod_cache: Add the cache_status hook to register the final cache
decision hit/miss/revalidate. Add optional support for an X-Cache
and/or an X-Cache-Detail header to add the cache status to the
response. PR48241


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1001639 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27 09:20:40 +00:00
William A. Rowe Jr
76e80493cc One more linguistic nit
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1000128 13f79535-47bb-0310-9956-ffa450edef68
2010-09-22 18:29:08 +00:00
Rich Bowen
ae3c5967e4 Remove duplicated word.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1000126 13f79535-47bb-0310-9956-ffa450edef68
2010-09-22 18:25:57 +00:00
William A. Rowe Jr
9baaf4e800 Revert breakage in 2.2.4 introduced in r450055, by offering a CacheStoreExpired
directive to allow the user to override this questionable change.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1000106 13f79535-47bb-0310-9956-ffa450edef68
2010-09-22 17:54:39 +00:00
Jeff Trawick
a6159028f9 hyphenate some compound modifiers
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@924915 13f79535-47bb-0310-9956-ffa450edef68
2010-03-18 17:39:48 +00:00
Jeff Trawick
ccfb4f54fc note that CacheLock is available in 2.2.15 or later
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@923735 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 13:32:19 +00:00
Graham Leggett
ae50b75b92 mod_cache: Teach CacheEnable and CacheDisable to work from within a
Location section, in line with how ProxyPass works.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@821993 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 20:27:19 +00:00
Graham Leggett
050515d99f mod_cache: Fix uri_meets_conditions() so that CacheEnable will
match by scheme, or by a wildcarded hostname.
PR: 40169
Submitted by: Peter Grandi <pg_asf asf.for.sabi.co.uk>
Reviewed by: Graham Leggett


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@821333 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03 14:54:00 +00:00
Graham Leggett
3ae6189d47 mod_cache: Introduce the option to run the cache from within the
normal request handler, and to allow fine grained control over
where in the filter chain content is cached.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@821202 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02 23:47:37 +00:00
Eric Covener
7b9c01f52f Now that we have actual released versions after 2.2.11, drop the
awkward/confusing exclusive phrasing of "after 2.2.11".



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@810187 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01 19:26:06 +00:00
Lucien Gentis
5252dbdd88 Typo and updates.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@809335 13f79535-47bb-0310-9956-ffa450edef68
2009-08-30 13:37:25 +00:00
Graham Leggett
2c379cc6fb mod_cache: Introduce the thundering herd lock, a mechanism to keep
the flood of requests at bay that strike a backend webserver as
a cached entity goes stale.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@808212 13f79535-47bb-0310-9956-ffa450edef68
2009-08-26 22:46:35 +00:00
Tony Stevenson
19608c7e3f Broken directive
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@785561 13f79535-47bb-0310-9956-ffa450edef68
2009-06-17 11:40:52 +00:00
Eric Covener
3624723612 no-cache envvar: copy the compatability note from 2.2.x for env.xml,
add compat note inline for refereneces in CacheEnable/CacheDisable.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@782860 13f79535-47bb-0310-9956-ffa450edef68
2009-06-09 01:27:43 +00:00
Ruediger Pluem
429c647612 * Improve documentation for CacheIgnoreURLSessionIdentifiers
Submitted by: Dan Poirier <poirier pobox.com>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@777091 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 12:21:10 +00:00
Ruediger Pluem
d2700640cd * Add CacheIgnoreURLSessionIdentifiers directive to ignore
defined session identifiers encoded in the URL when caching.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@777042 13f79535-47bb-0310-9956-ffa450edef68
2009-05-21 10:42:54 +00:00
Eric Covener
fd6b72322d document no-cache envvar
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@729317 13f79535-47bb-0310-9956-ffa450edef68
2008-12-24 15:07:11 +00:00
Takashi Sato
c9beb12c8d Remove mod_mem_cache from documents
(Sync with r711470)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@711521 13f79535-47bb-0310-9956-ffa450edef68
2008-11-05 06:49:29 +00:00
Ruediger Pluem
8a7fb4574c * Add CacheIgnoreQueryString directive to cache requests with a query string
even if no expiration time is specified. Futhermore the query string will not
  be used for key generation such that requests to the same URI path, but with
  different query strings are mapped to the same cache entity. Turning this
  setting to ON violates RFC 2616/13.9 and thus it is turned off by default.

PR: 41484
Submitted by: Fredrik Widlund <fredrik.widlund qbrick.com>
Reviewed by: rpluem


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@504183 13f79535-47bb-0310-9956-ffa450edef68
2007-02-06 15:55:50 +00:00
Graham Leggett
78e8ee0cf7 Revert the splitting of buckets before they are handed to the cache providers,
a better way has been found to do this.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@468044 13f79535-47bb-0310-9956-ffa450edef68
2006-10-26 15:43:25 +00:00
Graham Leggett
48a692a9cd mod_cache: Fix an out of memory condition that occurs when the
cache tries to save huge files (greater than RAM). Buckets bigger
than a tuneable threshold are split into smaller buckets before
being passed to mod_disk_cache, etc. PR 39380


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@467655 13f79535-47bb-0310-9956-ffa450edef68
2006-10-25 13:44:47 +00:00
Roy T. Fielding
44fa6e0073 update license header text
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420990 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 20:55:32 +00:00
Rich Bowen
ab2d671437 Submitted by Vincent 'noodl' Bray, this adds a link from the module doc
to the caching discussion, for clarification of obscure points.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@413486 13f79535-47bb-0310-9956-ffa450edef68
2006-06-11 17:49:34 +00:00
Colm MacCarthaigh
dd95d7c37c Update the copyright year in all .c, .h and .xml files
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395228 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 12:11:27 +00:00
Ruediger Pluem
467687b831 * Remove link to CacheSize as this directive is no longer present.
PR: 38449
Submitted by: Bjoern Voigt <bjoern cs.tu-berlin.de>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@373585 13f79535-47bb-0310-9956-ffa450edef68
2006-01-30 20:54:00 +00:00
Ruediger Pluem
395b632269 * Add CacheMinExpire directive to set the minimum time in seconds to cache a document
in the case that no valid expire time was supplied with the document.

Submitted by: Brian Akins <brian.akins turner.com>
Reviewed by: Ruediger Pluem


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@369811 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 15:12:23 +00:00
Colm MacCarthaigh
990d669370 Document the mod_cache / mod_authz_host problem.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@329388 13f79535-47bb-0310-9956-ffa450edef68
2005-10-29 10:07:01 +00:00
Colm MacCarthaigh
acf227a492 Enhance CacheEnable/CacheDisable to control caching on a per-protocol, per-host
and per-path basis. Makes Cache(En|Dis)able useful for forward proxy servers.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@239421 13f79535-47bb-0310-9956-ffa450edef68
2005-08-23 15:43:23 +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
4743f301f2 Add CacheStorePrivate, CacheStoreNoStore, and clarify CacheIgnoreCacheControl.
* docs/manual/mod/mod_cache.xml: Update documentation for
  CacheIgnoreCacheControl and add documentation for two new directives.
* modules/cache/mod_cache.c
  (cache_url_handler): Honor 'Cache-Control: no-cache' request header.
  (cache_save_filter): Only honor no-store or private when their respective
                       directives are Off (which is the default).
  rest of file: add in standard configuration syntax stuff...
* modules/cache/mod_cache.h: Minor formatting tweak and add new fields.

Suggested by: Pier Fumagalli


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@149492 13f79535-47bb-0310-9956-ffa450edef68
2005-02-02 07:10:20 +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
André Malo
9ade04f57c fix copyright notice
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@125277 13f79535-47bb-0310-9956-ffa450edef68
2005-01-15 17:01:17 +00:00
André Malo
00d2784f53 readd status information
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@106740 13f79535-47bb-0310-9956-ffa450edef68
2004-11-27 19:19:12 +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
André Malo
4ac4e5a1e3 $Revision$ is slightly misdocumented (only available since svn 1.1)
use LastChangedRevision instead


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105989 13f79535-47bb-0310-9956-ffa450edef68
2004-11-20 18:42:58 +00:00
André Malo
3b900e6993 adjust properties and revision expansion of the English docs
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105981 13f79535-47bb-0310-9956-ffa450edef68
2004-11-20 17:06:17 +00:00
Yoshiki Hayashi
f36c486af4 Clarify the sample configuration.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105758 13f79535-47bb-0310-9956-ffa450edef68
2004-11-12 13:26:05 +00:00
Justin Erenkrantz
41ee74561c mod_cache: Add CacheIgnoreHeaders directive.
(Justin made some minor tweaks to the patch.)

PR: 30399
Submitted by:	R�diger Pl�m <r.pluem@t-online.de>
Reviewed by:	Justin Erenkrantz


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105569 13f79535-47bb-0310-9956-ffa450edef68
2004-10-23 17:45:55 +00:00
André Malo
f08df46e89 add $Revision$ keyword
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@103423 13f79535-47bb-0310-9956-ffa450edef68
2004-04-17 10:49:23 +00:00
André Malo
b68721ed3a fix name of The Apache Software Foundation
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@102617 13f79535-47bb-0310-9956-ffa450edef68
2004-02-09 20:22:54 +00:00