final String ifNoneMatch = request.getHttpRequestHeader("If-None-Match");
final String hexTag = Long.toHexString(cachedTile.getTSCreated());
if (hexTag.equals(ifNoneMatch)) {
// Client already has the current version
LOGGER.finer("ETag matches, returning 304");
throw new HttpErrorCodeException(HttpServletResponse.SC_NOT_MODIFIED);
}
LOGGER.finer("No matching ETag, returning cached tile");
final byte[] mapContents = cachedTile.getContent();
final String mimeType = cachedTile.getMimeType().getMimeType();