$Web NoCache: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
Line 13: Line 13:
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>Code</th>
<tr><th>Code</th>
<td>Meaning</td></tr>
<th>Meaning</th></tr>
<tr><th>0</th>
<tr><th>0</th>
<td>Completed successfully</td></tr>
<td>Completed successfully</td></tr>

Revision as of 23:37, 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.

Syntax

<section begin="syntax" />%rc = $Web_NoCache <section end="syntax" />


$Web_NoCache does not take any arguments and it returns a numeric status code. It is a callable $function (see "Calling Sirius Mods $functions").

Code Meaning
0 Completed successfully
-1 Not a web thread

$WEB_NOCACHE return codes


$Web_NoCache is useful if you know that the page contains new information that the web user should see.

* Ensure new version of page is seen: %X = $Web_NoCache


$Web_NoCache is only available in Versions 6.3 and later of the Sirius Mods.