Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Best way to delete js cache in AEM 6.5 Author

Avatar

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

Avatar

Correct answer by
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

Avatar

Correct answer by
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.

Avatar

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?

Avatar

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

Avatar

Level 4

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