-<page xmlns:xsp="http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0">
<title>A Cacheable XSP Page</title>
-<content>
<para> Hi there! I'm a simple dynamic page generated by XSP (eXtensible Server Pages). </para>
-<para>
I need 2 seconds to be generated, so you can tell if I'm being served from the cache or not.
<br/>
What you see here has been generated on
<b>Sun Jun 07 14:23:01 WIB 2026</b>
.
</para>
-<para>
I'm cached for every different value of request parameter 'pageKey'.
<br/>
Here the value is:
<b/>
.
<br/>
If this is not the same as the 'pageKey' parameter in the page URL, we have a problem.
</para>
<para> All other request parameters do not influence cache status, but my validity will expire after 15 seconds (set by 'validity' URL parameter when page is generated). </para>
-<para>
Value of parameter 'other' is:
<b>null</b>
.
<br/>
This might be different than the URL parameter 'other', in case the version of the page you're seeing was cached from a request having the same 'pageKey' but a different value of 'other'.
</para>
-<para>
Test links:
-<ul>
-<li>
<a target="_new" href="cacheable?pageKey=one">pageKey=one</a>
</li>
-<li>
<a target="_new" href="cacheable?pageKey=two">pageKey=two</a>
</li>
-<li>
<a target="_new" href="cacheable?pageKey=three&other=abc">pageKey=three, other=abc</a>
</li>
-<li>
<a target="_new" href="cacheable?pageKey=three&other=xyz">pageKey=three, other=xyz</a>
</li>
-<li>
<a target="_new" href="cacheable?pageKey=three&other=wow&validity=5">pageKey=three, other=wow and 5 seconds of cache validity</a>
</li>
</ul>
</para>
</content>
</page>