• Post Reply Bookmark Topic Watch Topic
  • New Topic

browser cache and AJAX  RSS feed

 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some time when using Gmail I have noticed messages "Your browser cache is full" or similar message. How does the javascript know about this ?

I think it happens because tool much data is stored in the client side. How does an AJAX developer handles such situations?
 
Brett McLaughlin
author
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm... this actually isn't a message I've seen. If it's the browser, it's obviously something controllable on an individual user's machine. From the sound of it, it's not something that you're going to get much information about in your JavaScript. For example, since it's on the browser, you won't get a ready state or error code.

The same thing happens at times with browser time-outs. If they are set really low, errors can result, and you really don't have much recourse. Welcome to client-side programming :-)

Brett
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Brett McLaughlin:
Hmmm... this actually isn't a message I've seen. If it's the browser, it's obviously something controllable on an individual user's machine. From the sound of it, it's not something that you're going to get much information about in your JavaScript. For example, since it's on the browser, you won't get a ready state or error code.

The same thing happens at times with browser time-outs. If they are set really low, errors can result, and you really don't have much recourse. Welcome to client-side programming :-)

Brett


I believe that is is generated by gmail's code. The message is displayed at the same location as other messages like "The conversation has been sent" etc. I wonder how they implement it ?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically when your cache is full, stuff that should be cached keeps being requested. They are probably detecting this state on the server. JavaScript does not have the ability to examine your harddrive.

Eric
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eric Pascarello:
Basically when your cache is full, stuff that should be cached keeps being requested. They are probably detecting this state on the server. JavaScript does not have the ability to examine your harddrive.

Eric


Thanks Eric.
 
dema rogatkin
Ranch Hand
Posts: 294
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I noticed a strange behavior of FF 1.5. When I do AJAX call, a browser sometimes sends requests using parameters of previous call. It never happens for IE, so it doesn't look like a caller problem.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Areyou creating a new object each time?

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66260
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Pradip bp",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!