Skip to content

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:

  1. Log in to the Funnelback server backend (e.g. via SSH or RDP)

  2. Browse to <FUNNELBACK INSTALL FOLDER>/web/templates/modernui

  3. Copy cached-copy-unavailable.default.ftl to cached-copy-unavailable.ftl. It is important to make a copy of this file as any upgrade of the Funnelback server will overwrite the cached-copy-unavailable.default.ftl.

  4. Edit cached-copy-unavailable.ftl and save the file.

Changes should be reflected as soon as the file is saved.

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>

See also

top

Funnelback logo
v15.24.0