You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2019/03/13 13:37:36 UTC
[sling-site] branch master updated: clarify support of conditional
requests
This is an automated email from the ASF dual-hosted git repository.
kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-site.git
The following commit(s) were added to refs/heads/master by this push:
new 6ef7748 clarify support of conditional requests
new 0282cd2 Merge branch 'master' of git@github.com:apache/sling-site.git
6ef7748 is described below
commit 6ef7748aaff6eb64183e3c8c9956b4007ef37aa9
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Wed Mar 13 14:37:06 2019 +0100
clarify support of conditional requests
---
.../documentation/bundles/rendering-content-default-get-servlets.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/main/jbake/content/documentation/bundles/rendering-content-default-get-servlets.md b/src/main/jbake/content/documentation/bundles/rendering-content-default-get-servlets.md
index 11dd3ee..42ced35 100644
--- a/src/main/jbake/content/documentation/bundles/rendering-content-default-get-servlets.md
+++ b/src/main/jbake/content/documentation/bundles/rendering-content-default-get-servlets.md
@@ -25,6 +25,8 @@ Currently, only the `DefaultGetServlet` has configuration parameters. Those are
and should be self-explaining. One common use is to disable some of the default renderings listed below,
as they might not be useful or desired on production systems.
+If not otherwise mentioned for specific renderings the servlet does not support conditional requests as specified by [RFC 7232](https://tools.ietf.org/html/rfc7232) (i.e. the `If-....` request headers are disregarded and the response will neither contain `ETag` nor `Last-Modified` headers).
+
# Default renderings
## Default JSON rendering
@@ -60,7 +62,7 @@ rendering resources that are backed by JCR nodes.
## StreamRendererServlet
-Whenever the request carries the extension `.res` or no extension at all, the resource's input stream is spooled to the servlet response (leveraging `Resource.adaptTo(InputStream.class)`). This servlet supports conditional requests ([RFC 7232](https://tools.ietf.org/html/rfc7232)) evaluating the resource's modification date from `Resource.getResourceMetadata().getModificationTime()` and range requests ([RFC 7233](https://tools.ietf.org/html/rfc7233)).
+Whenever the request carries the extension `.res` or no extension at all, the resource's input stream is spooled to the servlet response (leveraging `Resource.adaptTo(InputStream.class)`). This servlet supports conditional requests ([RFC 7232](https://tools.ietf.org/html/rfc7232)) based on the last-modified response header by evaluating the resource's modification date from `Resource.getResourceMetadata().getModificationTime()` and range requests ([RFC 7233](https://tools.ietf.org/html/ [...]
## RedirectServlet