Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Best way to delete js cache in AEM 6.5 Author

AEMnewbie
Level 4
Level 4

I have a project package(which was existing in author) which i was trying to reinstall.. After reinstall i noticed that the page is loaded a wrong incorrect js ( looks like it cache and the reinstall isnt clearing it) I confirmed this by accessing the js directly and then with a ? at the end. I see that they are different.

How do i get rid of the existing incorrect js.

 

I was going thru a video where i noticed these approaches

 

1.Accessing system/console/scriptcache( This is prod instance .I dont have access )

2./libs/granite/ui/content/dumplibs.rebuild.html - This invalidates everything which i am not to inclined to do !! I just want to invalidate my specific file

3.Accessing crx-quickstart( which i dont have access to)

 

Is there any other option where i could just invalidate the impacted file with ease

1 Accepted Solution
Shashi_Mulugu
Correct answer by
Community Advisor
Community Advisor

@AEMnewbie Firstly we should not cache anything in AEM author.. based on your message mostly your author instance is behind a dispatcher, just deny all cache rules in author farm.

 

And this issue will occur in publisher as well, you can use ACS commons Versioned Clientlibs feature will add new md5hash after every change/hit to aem instance which will be unique and won't have effect of cache when new changes get deployed.

View solution in original post

4 Replies
Shashi_Mulugu
Correct answer by
Community Advisor
Community Advisor

@AEMnewbie Firstly we should not cache anything in AEM author.. based on your message mostly your author instance is behind a dispatcher, just deny all cache rules in author farm.

 

And this issue will occur in publisher as well, you can use ACS commons Versioned Clientlibs feature will add new md5hash after every change/hit to aem instance which will be unique and won't have effect of cache when new changes get deployed.

View solution in original post

AEMnewbie
Level 4
Level 4
@Shashi_Mulugu we can look into it (deny all cache) . But how do i fix it for now? If this can be done in Dispatcher , can i know where i could find author js?
Shashi_Mulugu
Community Advisor
Community Advisor
If you are using ams setup please refer to /etc/httpd/conf.d.dispatcher/ams_author_farm.any which will have a cache root
AEMnewbie
Level 4
Level 4

@Shashi_Mulugu I wasnt looking for the farm path!! But i found what i was looking for ! Thanks for your help