Cache action for root in Dispatcher - request without extension [/]
I am trying to work on a multidomain website and have used sling based mapping to map the domain to a landing page within AEM.
For eg. www.mobile.example.com --> is mapped to /content/example/mobile/home.html
So when user hits www.mobile.example.com, there is an internal redirection to /content/example/mobile/home.html and the same page is shown without the extension or content path.
So far so good. The only caveat to this is now this is root page for the dispatcher and it is not able to cache it and is saying:
[Wed Nov 25 20:43:58 2015] [D] [6292(140029921134656)] checking [/] [Wed Nov 25 20:43:58 2015] [D] [6292(140029921134656)] request URL has no extension: / [Wed Nov 25 20:43:58 2015] [D] [6292(140029921134656)] cache-action for [/]: NONE
Is there a way to cache the root? I may sound a bit silly here but I want to avoid Apache URL rewrites (project limitation)
My dispatcher cache settings are:
# the cache is used to store requests from the renders for faster delivery # for a second time. /cache { # the cacheroot must be equal to the document root of the webserver /docroot "/var/www/html" # sets the level upto which files named ".stat" will be created in the # document root of the webserver. when an activation request for some # handle is received, only files within the same subtree are affected # by the invalidation. /statfileslevel "2" # caches also authorized data # allow httpd auth /allowAuthorized "0" # the rules define, which pages should be cached. please note that # - only GET requests are cached # - only requests with an extension are cached # - only requests without query parameters ( ? ) are cached # - only unauthorized pages are cached unless allowUnauthorized is set to 1 /rules { /0000 { # the globbing pattern to be compared against the url # example: * -> everything # : /foo/bar.* -> only the /foo/bar documents # : /foo/bar/* -> all pages below /foo/bar # : /foo/bar[./]* -> all pages below and /foo/bar itself # : *.html -> all .html files /glob "*" /type "allow" } }
Please let me know if anyone has an insight on this.