mirror of
https://github.com/mirror/wget.git
synced 2026-08-22 10:53:29 +08:00
docs: --no-cache also sets the 'Cache-Control: no-cache' header
* doc/wget.texi: Add Cache-Control to docs * src/wget.h: Add Cache-Control to comment of SEND_NOCACHE Copyright-paperwork-exempt: Yes
This commit is contained in:
committed by
Tim Rühsen
parent
caf30fbe28
commit
9e7c1554bd
@@ -1402,10 +1402,10 @@ to the inability of server-side scripts to cope with the connections.
|
|||||||
@cindex cache
|
@cindex cache
|
||||||
@item --no-cache
|
@item --no-cache
|
||||||
Disable server-side cache. In this case, Wget will send the remote
|
Disable server-side cache. In this case, Wget will send the remote
|
||||||
server an appropriate directive (@samp{Pragma: no-cache}) to get the
|
server appropriate directives (@samp{Cache-Control: no-cache} and
|
||||||
file from the remote service, rather than returning the cached version.
|
@samp{Pragma: no-cache}) to get the file from the remote service,
|
||||||
This is especially useful for retrieving and flushing out-of-date
|
rather than returning the cached version. This is especially useful
|
||||||
documents on proxy servers.
|
for retrieving and flushing out-of-date documents on proxy servers.
|
||||||
|
|
||||||
Caching is allowed by default.
|
Caching is allowed by default.
|
||||||
|
|
||||||
|
|||||||
@@ -332,7 +332,7 @@ enum
|
|||||||
or application/xhtml+xml */
|
or application/xhtml+xml */
|
||||||
RETROKF = 0x0002, /* retrieval was OK */
|
RETROKF = 0x0002, /* retrieval was OK */
|
||||||
HEAD_ONLY = 0x0004, /* only send the HEAD request */
|
HEAD_ONLY = 0x0004, /* only send the HEAD request */
|
||||||
SEND_NOCACHE = 0x0008, /* send Pragma: no-cache directive */
|
SEND_NOCACHE = 0x0008, /* send Cache-Control: no-cache and Pragma: no-cache directive */
|
||||||
ACCEPTRANGES = 0x0010, /* Accept-ranges header was found */
|
ACCEPTRANGES = 0x0010, /* Accept-ranges header was found */
|
||||||
ADDED_HTML_EXTENSION = 0x0020, /* added ".html" extension due to -E */
|
ADDED_HTML_EXTENSION = 0x0020, /* added ".html" extension due to -E */
|
||||||
TEXTCSS = 0x0040, /* document is of type text/css */
|
TEXTCSS = 0x0040, /* document is of type text/css */
|
||||||
|
|||||||
Reference in New Issue
Block a user