• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URLConnection with AJAX

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
I am facing an issue: I am making an Ajax call on my application on load of my page and getting some response: The response is coming OK, but my application reads the data from previously stored temporary internet files.
If I change the settings Internet options>Temporary internet files> Check for newer version of stored pages>Every visit to the page

It works

In other case it does not.

My application to which i hit using is requesting data from some other application using URLConnection(java).

Is there some way to in which i can stop my application(one which makes URL connection) to read from temporary internet files.
[ November 18, 2008: Message edited by: Rinky Kaur ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See the NoCacheHeaders entry in the JSP FAQ.
 
Rinky Kaur
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the response
I tried to use the same, but doesn't work.


 
Ranch Hand
Posts: 203
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
add the request timestamp into your ajax call url, via doing that the url is new on every request hence cached pages doesn't come into picture

hope this works
[ November 19, 2008: Message edited by: subodh gupta ]
 
Rinky Kaur
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Subodh

Its working perfect
reply
    Bookmark Topic Watch Topic
  • New Topic