@Override public boolean express(ActionContext context) { if (preloaded || null != delegate) { return true; } String path = context.paramVal(ParamNames.PATH); return Act.isProd() && (cachedBuffers.containsKey(path) || cachedFailures.containsKey(path) || (null != context.req().etag() && context.req().etagMatches(etags.get(path)))); }
@Override public boolean express(ActionContext context) { if (preloaded || null != delegate) { return true; } String path = context.paramVal(ParamNames.PATH); return Act.isProd() && (cachedBuffers.containsKey(path) || cachedFailures.containsKey(path) || (null != context.req().etag() && context.req().etagMatches(etags.get(path)))); }
} else { resp.contentType(preloadedContentType); if (req.etagMatches(etag)) { if (null != reqEtag && req.etagMatches(etags.get(path))) { H.Format contentType = cachedContentType.get(path); if (null == contentType) {
} else { resp.contentType(preloadedContentType); if (req.etagMatches(etag)) { if (null != reqEtag && req.etagMatches(etags.get(path))) { H.Format contentType = cachedContentType.get(path); if (null == contentType) {
if (null != cached && cached.isValid()) { String etag = cached.etag(); if (null != etag && context.req().etagMatches(etag)) { NotModified.of(etag).apply(context.req(), context.resp()); } else {
if (null != cached && cached.isValid()) { String etag = cached.etag(); if (null != etag && context.req().etagMatches(etag)) { NotModified.of(etag).apply(context.req(), context.resp()); } else {
private static void processEtag(HandlerMethodMetaInfo meta, Object v, ActionContext context, H.Request req) { if (!(v instanceof Versioned)) { return; } String version = ((Versioned) v)._version(); String etagVersion = etag(meta, version); if (req.etagMatches(etagVersion)) { throw NotModified.get(); } else { context.resp().etag(etagVersion); } }
private static void processEtag(HandlerMethodMetaInfo meta, Object v, ActionContext context, H.Request req) { if (!(v instanceof Versioned)) { return; } String version = ((Versioned) v)._version(); String etagVersion = etag(meta, version); if (req.etagMatches(etagVersion)) { throw NotModified.get(); } else { context.resp().etag(etagVersion); } }