【发布时间】:2014-12-05 12:05:22
【问题描述】:
Sling 中的 URL 具有以下结构:
我还阅读了以下information aboutn dispatcher cache:
The Dispatcher always requests the document directly from the AEM instance in the following cases:
If the HTTP method is not GET. Other common methods are POST for form data and HEAD for the HTTP header.
If the request URI contains a question mark "?". This usually indicates a dynamic page, such as a search result, which does not need to be cached.
The file extension is missing. The web server needs the extension to determine the document type (the MIME-type).
The authentication header is set (this can be configured)
我有两个误解:
-
myurl.com/foo.jsp/parameter/values是否会遵守以下规则:缺少文件扩展名。 Web 服务器需要扩展来确定文档类型(MIME 类型)。
?
- 公式Dispatcher 始终直接从 AEM 实例请求文档 不能保证在其他情况下请求会被缓存,但我想确保我的请求会被缓存。
附言
请从一开始就提供具体步骤如何检查具体网址是否兑现。
【问题讨论】:
-
您提供的备忘单不是 Sling 的结构。它只是解释了 Sling 如何决定使用哪个脚本来呈现特定请求。
标签: caching aem dispatcher sling