You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We were wondering whether the code for checking isNoMediaCache might be incorrect.
if (!requestDto.isNoMediaCache()) {
log.debug("File cannot be cached: {}", file.getAbsolutePath());
binaryComponent.setLastPublishDate(new DateTime().toString());
}
We always get a 200 ok for an image request and never receive a 304 on an image. We found out the a new Date is always passed as lastModifiedDate in the browser which led us to this code.
We were wondering if the ! should be presented here.
Regards Erwin Broersen
The text was updated successfully, but these errors were encountered:
The above code always return false because of && this.webRequestContext.isSessionPreview() on live environment.
so !requestDto.isNoMediaCache() become true and it always set last publish date for binary component.
As per our analysis, double negation is not required. or are we missing something?
We were wondering whether the code for checking isNoMediaCache might be incorrect.
We always get a 200 ok for an image request and never receive a 304 on an image. We found out the a new Date is always passed as lastModifiedDate in the browser which led us to this code.
We were wondering if the ! should be presented here.
Regards Erwin Broersen
The text was updated successfully, but these errors were encountered: