}
else {
if (Log.aribawebResource_brand.isDebugEnabled()) {
String location = resource.url();
if (resource instanceof AWFileResource) {
AWFileResource file = (AWFileResource)resource;
location = file._fullPath();
}
Log.aribawebResource_brand.debug("Found: %s", location);
}
String lastModified = fmt.format(new Date(resource.lastModified()));
response.setHeaderForKey(lastModified, "Last-Modified");
// we are not specifying any cache-control header
// since we are letting the web server config control this
if (resource instanceof AWFileResource) {
AWFileResource file = (AWFileResource)resource;
response.setContentFromFile(file._fullPath());
}
else {
((AWBaseResponse)response).setContentFromStream(resource.inputStream());
}
}