Skip to content

Commit

Permalink
Fix for FCREPO-1678
Browse files Browse the repository at this point in the history
  • Loading branch information
ajs6f committed Aug 11, 2015
1 parent a9d83ce commit 2432244
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -473,8 +473,10 @@ protected static void addCacheControlHeaders(final HttpServletResponse servletRe
return;
}

final EntityTag etag = new EntityTag(resource.getEtagValue());
final Date date = resource.getLastModifiedDate();
final FedoraResource mutableResource = resource instanceof NonRdfSourceDescription
? ((NonRdfSourceDescription) resource).getDescribedResource() : resource;
final EntityTag etag = new EntityTag(mutableResource.getEtagValue());
final Date date = mutableResource.getLastModifiedDate();

if (!etag.getValue().isEmpty()) {
servletResponse.addHeader("ETag", etag.toString());
Expand Down

0 comments on commit 2432244

Please sign in to comment.