Date: Thu, 28 Mar 2024 13:12:24 +0000 (UTC) Message-ID: <1472193972.5.1711631544738@8068de254b64> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_4_261981553.1711631544737" ------=_Part_4_261981553.1711631544737 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Proxy Cache Headers
Proxy cache headers for use with reverse proxies and other proxy mechani= sms were added in the 6.0.11 milestone release.
To simplify adding cache headers to pages, the upcoming 6.0.11 release a= dds support for the @@proxyCacheTimeout decorators to webskins. This value = specifies the number of seconds that webskin should be cached for. The smal= lest value specified when constructing a page is added to the header using = the max-age and s-maxage headers, or as a set of no-cache headers if 0.
By default, FarCry doesn't add cache headers when no webskin specifies a= proxy cache timeout. Use the defaultProxyCacheTimeout constructor setting = to change this behaviour. To default to a 2 minute cache:
<cfse= t this.defaultProxyCacheTimeout =3D 120 />
If you want FarCry to default to no-cache headers:
<cfse= t this.defaultProxyCacheTimeout =3D 0 />
As well as the typical response headers, META tags and an html comment a= re added to the page. These can help troubleshoot issues with reverse proxi= es. e.g.:
<META= HTTP-EQUIV=3D"Cache-Control" CONTENT=3D"max-age=3D120,s-maxage=3D120" />= ; <!-- Page cached until: Mon, 28 Feb 2011 10:40:58 GMT+11 (120 seconds) -= ->
Cache-C= ontrol max-age=3D120,s-maxage=3D120
We use max-age instead of Expires because of time zone complica= tions. Effective use of Expires requires the correct time on the w= eb server, the reverse proxy (or any proxies between the web server and the= user), and the user's own computer.
Expires= Tue, 01 Jan 1985 00:00:01 GMT Pragma no-cache cache-control no-cache, no-store, must-revalidate