Best way to delete js cache in AEM 6.5 Author | Community
Skip to main content
Level 4
October 23, 2020
Solved

Best way to delete js cache in AEM 6.5 Author

  • October 23, 2020
  • 1 reply
  • 3215 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Shashi_Mulugu

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

1 reply

Shashi_Mulugu
Community Advisor
Shashi_MuluguCommunity AdvisorAccepted solution
Community Advisor
October 23, 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.

AEMnewbieAuthor
Level 4
October 23, 2020
@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?