Expand my Community achievements bar.

Cache issue with external JS Code.

Avatar

Level 2

Hi Team,

 

I am able to see "Cache issue with external JS Code".

 

How we can minimize creating the new JS code every time we change something inside code.

 

Note : We can reuse same JS code if any changes required instead of creating new one.

 

Please provide your thoughts to fix this cache issue with external JS code.

 

Thanks,

Gangadhar

7 Replies

Avatar

Employee Advisor

Hi Gangadhar,

Could you please provide more details on what error you are getting when referring to "Cache issue with external JS Code"?"

Avatar

Community Advisor

Hi @Gangadhar_Reddy1 

if you want to disable cache within JSSP pages in AC you can use the following:

        // Setting headers to disable cache
        response.addHeader("Pragma", "no-cache")
        response.addHeader("Cache-Control", "no-cache");
        response.addHeader("Expires", new Date().toGMTString());

Regards,

Milan

Avatar

Level 2

Hi Milan,

 

Thanks for providing the dynamic java script code. But this code is not working.

 

Please provide me the Java script code instead of dynamic java script code to fix the cache issue with external JS code.

 

Thanks,

Gangadhar

Avatar

Administrator

Hi @Gangadhar_Reddy1,

Were you able to resolve this query or do you still need more help here? Do let us know.

Thanks!



Sukrity Wadhwa

Avatar

Level 2

Hi Sukrity,

 

Please provide me the Java script code to fix the cache issue with external JS code.

 

Thanks,

Gangadhar

Avatar

Administrator

Thanks for letting us know. I will amplify your query among our SMEs and try to get the help you need. 

-Sukrity



Sukrity Wadhwa