File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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....
 
 
subject: Cache of data on Browsers when using javascript
 
Similar Threads
Check how many browsers are using servlets
Ajax compatibility
Browser issue
Objective 7.1 Please comment
Browser closed detection