• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

IHS integration problem with WAS

 
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Thanks a lot in advance.
I am facing a serious problem with IHS(1.3) and WAS5.1.
Actually I have configured IHS with WAS and kept some static content on IHS folder.
After configuring this my application is working fine but suppose if I change any JS(Javascript) file the changes are not reflecting. I tried by restarting WAS and IHS but no use.
And when I try http://localhost/test.js it is showing me old JS file but if I try http://localhost:9080/test.js it is showing me new code.
I think some caching is happening.
Even I tried by doing cache related browser settings but no use.
In some cases after some time the changes are showing but not every time.
Please help me.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've run into these types of caching issues before, and they're difficult to solve. Here's a workaround that i use: Just append a parameter with a different version number to the URL each time you change the js file. For example: http://localhost/test.js?version=2 It's ignored, but it usually does force the browser and the web server to get a new copy of the file.
 
sreedhar Lackka
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot for your reply.
However, I am using in my JSP. Suppose if I changed the js file again i have change the src attribute.
Do we have any way to do it automatically.

Thanks
Sree
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The trouble with caching problems is that it's hard to tell what entity is caching your file. Is it the browser? the ISP? the web server? the app server? Sure, there are ways to check each of these areas and try to stop them from caching, but by adding a parameter to the URL as I suggested, each of the above knows to delete its cache and request a new copy from the server. What I'm suggesting is that the first time you change it, the url is test.js?version=1, the second time you change it, it's test.js?version=2, etc.
 
What does a metric clock look like? I bet it is nothing like this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic