I am using AEM 6.3.1.0. To achieve URL shortening I used Apache Sling resource resolver factory and it works fine. Now at apache, the cache is persisted with shortened paths as /en/home.html, /en/home/page1.html etc.
This disturbs flush agents as when /content/myapp/en/home is published, corresponding path is not found in apache and no flushing happens. This makes /en/home.html obsolete.
One solution i got to fix this issue is apache rewrite rules in httpd.conf file. If i add the rewrite rules so i dont need to add the rewrite rules in Apache Sling resource resolver factory am i right? Or do we have any other way to fix this issue other than apache rewrite rules.
Thanks in advance.
Solved! Go to Solution.
Couple of options:
Use ACS Dispatcher Flush Rules to flush /content/myapp/en*=/en* or /content/myapp/.*=/.*
Create rules per your requirements
Views
Replies
Total Likes
Hi Gaurav,
We are not using ACS common package in our project is there any thing else that we can do to clear the cache for short urls.
Views
Replies
Total Likes
Couple of options:
Views
Likes
Replies