aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Cache of data on Browsers when using javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Cache of data on Browsers when using javascript" Watch "Cache of data on Browsers when using javascript" New topic
Author

Cache of data on Browsers when using javascript

Krishna Jonnalagadda
Ranch Hand

Joined: Feb 09, 2010
Posts: 43
Hi,

I think this is a common problem when javascript is used. In one of my applications that I've built, one of the requirement was to not use javascript.

I'd appreciate if you can provide some info on the following:
a. How do we make sure the data is not cached on the browsers ?and
b. How to ensure the application security when javascript (JQuery,AJAX etc) is used extensively ?

Thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
a. How do we make sure the data is not cached on the browsers ?


How would the data be cached? Are you storing it to cookies or local storage?

b. How to ensure the application security when javascript (JQuery,AJAX etc) is used extensively ?


How do you secure regular http calls? XMLHttpRequests are normal gets/posts/puts/etc. Same rules apply. And do not do secure business logic in JavaScript code and validate everything on the server.

Eric
Krishna Jonnalagadda
Ranch Hand

Joined: Feb 09, 2010
Posts: 43
Thanks for the reply !! We are not storing in cookies , We are using local storage ...
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Um, if you are using local storage you are keeping info on the computer....
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Cache of data on Browsers when using javascript