This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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....
 
Don't get me started about those stupid light bulbs.
 
subject: Cache of data on Browsers when using javascript
 
Similar Threads
Browser closed detection
Browser issue
Objective 7.1 Please comment
Check how many browsers are using servlets
Ajax compatibility