Solved! Go to Solution.
Views
Replies
Total Likes
Imagine to have these valid URLs:
/content/basket/checkout.html
/content/basket/checkout.html/suffix.html
Both are valid URLs for AEM/Sling and both can be cached in the dispatcher.
In the filesystem this looks like this:
DOCROOT
DOCROOT/content
DOCROOT/content/basket.html
DOCROOT/content/basket/checkout.html <--------
DOCROOT/content/basket/checkout.html/suffix.html
In a fiilesystem the path DOCROOT/content/basket/checkout.hml can be either a directory or a file, but not both. A depending what path is cached first it is created either as a directory or a file.
The only way to fix it is to make the decision upfront, it if should be a directory or a file, and then create the URLs/requests accoringly.
For example a request to /content/basket/checkout.html could be a redirect to /content/basket/checkout.html/defaultSuffix.html. Or turning the suffix into a selector.
Imagine to have these valid URLs:
/content/basket/checkout.html
/content/basket/checkout.html/suffix.html
Both are valid URLs for AEM/Sling and both can be cached in the dispatcher.
In the filesystem this looks like this:
DOCROOT
DOCROOT/content
DOCROOT/content/basket.html
DOCROOT/content/basket/checkout.html <--------
DOCROOT/content/basket/checkout.html/suffix.html
In a fiilesystem the path DOCROOT/content/basket/checkout.hml can be either a directory or a file, but not both. A depending what path is cached first it is created either as a directory or a file.
The only way to fix it is to make the decision upfront, it if should be a directory or a file, and then create the URLs/requests accoringly.
For example a request to /content/basket/checkout.html could be a redirect to /content/basket/checkout.html/defaultSuffix.html. Or turning the suffix into a selector.
Thanks for the way forward.
On access logs we were able to figure out that on specific conditions and only for Dalvik (User Agent) browsers there was being requested a favicon as basket.html/favicon that was generating this issue.
This URL was an invalid one so it was fixed.