Cache unavailable screen
Introduction
The cache unavailable screen is displayed to users that access a cache document from a search result when the cache version cannot be served.
By default a generic message is displayed to end users:
Could not access the requested cached document.
This document may have been removed, or the link to this page may be broken, or your security settings may prevent access to cached documents.
Customise the cache unavailable screen
The cache unavailable screen is generated using a Freemarker template.
To change the output:
-
Log in to the Funnelback server backend (e.g. via SSH or RDP)
-
Browse to
<FUNNELBACK INSTALL FOLDER>/web/templates/modernui
-
Copy
cached-copy-unavailable.default.ftl
tocached-copy-unavailable.ftl
. It is important to make a copy of this file as any upgrade of the Funnelback server will overwrite thecached-copy-unavailable.default.ftl
. -
Edit
cached-copy-unavailable.ftl
and save the file.
Changes should be reflected as soon as the file is saved.
Example: Add a header and footer the cache unavailable screen.
Edit cached-copy-unavailable.ftl
to add a header and footer:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="robots" content="noindex,nofollow" />
<title>Cached copy unavailable</title>
<style type="text/css">
body {
font-family: Verdana;
text-align: center;
}
</style>
</head>
<body>
<header>
SITE HEADER CODE
</header>
<p>Could not access the requested cached document.</p>
<#if exception??>
<p>There was an error processing your request. Please check the application logs.</p>
<#else>
<p>This document may have been removed, or the link to this page may be broken, or your security settings may prevent access to cached documents.</p>
</#if>
<footer>
SITE HEADER CODE
</footer>
</body>
</html>