$Web NoCache: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
mNo edit summary |
||
Line 2: | Line 2: | ||
<span class="pageSubtitle"><section begin="desc" />Set HTTP response headers so fresh page displayed<section end="desc" /></span> | <span class="pageSubtitle"><section begin="desc" />Set HTTP response headers so fresh page displayed<section end="desc" /></span> | ||
$Web_NoCache sets various HTTP response headers so that the browser will display the new version of the response page, regardless of any cached versions. | |||
$Web_NoCache does not take any arguments and it returns a numeric status code. It is a callable $function (see [[Calling_Sirius_Mods_$functions|"Calling Sirius Mods $functions"]]). | |||
==Syntax== | ==Syntax== | ||
<p class="syntax"><section begin="syntax" />%rc = $Web_NoCache | <p class="syntax"><section begin="syntax" />%rc = $Web_NoCache | ||
<section end="syntax" /></p> | <section end="syntax" /></p> | ||
===Syntax terms=== | |||
<table class="syntaxTable"> | |||
<tr><th>%rc</th> | |||
<td>A numeric status code: | |||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>Code</th> | <tr><th>Code</th> | ||
Line 18: | Line 21: | ||
<tr><th>-1</th> | <tr><th>-1</th> | ||
<td>Not a web thread</td></tr> | <td>Not a web thread</td></tr> | ||
</table></td></tr> | |||
</table> | </table> | ||
==Usage notes== | |||
$Web_NoCache is useful if you know that the page contains new information that the web user should see. | |||
==Examples== | |||
<p class="code"> * Ensure new version of page is seen: | <p class="code">* Ensure new version of page is seen: | ||
%X = $Web_NoCache | |||
</p> | </p> | ||
[[Category:Janus Web Server $functions|$Web_NoCache]] | [[Category:Janus Web Server $functions|$Web_NoCache]] |
Revision as of 23:44, 16 October 2012
<section begin="desc" />Set HTTP response headers so fresh page displayed<section end="desc" />
$Web_NoCache sets various HTTP response headers so that the browser will display the new version of the response page, regardless of any cached versions.
$Web_NoCache does not take any arguments and it returns a numeric status code. It is a callable $function (see "Calling Sirius Mods $functions").
Syntax
<section begin="syntax" />%rc = $Web_NoCache <section end="syntax" />
Syntax terms
%rc | A numeric status code:
|
---|
Usage notes
$Web_NoCache is useful if you know that the page contains new information that the web user should see.
Examples
* Ensure new version of page is seen: %X = $Web_NoCache