cancel
Showing results for 
Search instead for 
Did you mean: 

Javascript .js caching problem?

Former Member
0 Kudos
146

I am noticing a problem with a javascript .js file deployed in my web application. Web AS does not pick up new changes to this .js file. Web AS keeps picking up the older copy of the .js file deployed in a war file. I have deleted the ear file created under and redeployed:

/usr/sap/J2E/JC00/SDM/root/origin/sap.com/myapp/localhost/2005.06.24.08.27.35

Where is Web AS caching the deployed files? Why doesn't the refreshed copy of the .js get deployed? Rest of the application deploys fine except for the javascript file.

Can some one please comment on any similar experience?

Thanks for the help.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

forced reload shift+refresh fixed the problem.

Former Member
0 Kudos

Hi Ray,

static files like .js or .css are cached in the J2EE Engine's http cache. If the http cache is enabled you can't "fix" the problem with a shift+refresh. This only helps when the file is cached on client side.

You can clear the cache with the visual admin tool.

-> server

-> services

-> HTTP Provider

There, look for the trash can icon in the row on the top and click it. You may also edit the cache properties or just turn it off for development in the properties tab.

Regards, Karsten