I have enabled basic auth from dispatcher for our dev and stage server.But its not caching content when basic auth is enabled.
If I disable basic auth then it works. For basic auth I have added following code on dispatcher
<Directory "${PUBLISH_DOCROOT}"> <If "req('Host') =~ /(dev|stage)\.example...
map is to convert long path to short path.i.e : contentPath=/content/---world/global/en.
now if i use resourceResolver.map(contentPath) then it will retuen http://local.---world.com/en.
I need the reverse one. I need this from http://local.---world.com -to> content/---world/global.
In this case it will return the servlet path not the content path, because the request is coming on a servlet. And the code snippet you gave returns the current request path info. In my case its a servlet.
I was actually looking for the full path from domain. In this case i dont know the /content/something.I only have http://local.---world.com/. From this I have to find the actual path mapped with it.
I need this from http://local.---world.com -to> content/---world/global/en.
Check cache rules and /ignoreUrlParams. For caching all use this rule
/0000 { /glob "*" /type "allow"}
Make sure someone is not modifying the request. like cloudflare
We are using AEM 6.5.14. The map and reverse map is properly configured. From /system/console/jcrresolver the resolve and map is working fine.
But from code we can not get the full path from domain. In short request.getResourceResolver().resolve("http://local.---world.com").getPath() is not returnin...