Best way to delete js cache in AEM 6.5 Author

Avatar

Avatar

AEMnewbie

Avatar

AEMnewbie

AEMnewbie

22-10-2020

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

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Shashi_Mulugu

MVP

Avatar

Shashi_Mulugu

MVP

Shashi_Mulugu
MVP

22-10-2020

@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.

Answers (0)