if (VERSION_REGEX.matcher(request.getRequestURI()).find())
{
response.setHeader(CACHE_CONTROL, CACHE_CONTROL_ALLOW_CACHE);
response.setHeader(EXPIRES, getExpiresHeader(MAX_AGE));
LockedHeaderResponseWrapper responseWrapper = new LockedHeaderResponseWrapper(response, Arrays.asList(CACHE_CONTROL, EXPIRES));
chain.doFilter(request, responseWrapper);
}
else
{
// leave unversioned requests untouched incase they are requests for custom servlets