you’re on your way 4
115
ajax requests
Internet Explorer is a pretty smart browser,
and tries to do lots of things to help make your
browsing a better and faster experience. For
instance, it will cache a lot of your images, so if
you visit a page with lots of graphics, and then
come back later, you’ll see the graphics come up
really quickly.
IE tries to do something similar with URLs. If
you make a request to a server-side program, IE
keeps track of the URL you requested. Then, if
you make a request to the same URL—without
any different data—IE gures you’re going to
get the same response. So, instead of re-sending
the request, it just gives you the result from the
rst time you made the request.
Since we rst saw this problem in the Boards
‘R’ Us app, let’s start by xing that app on
Windows. Then, we can take what we learned
and x up Break Neck Pizza, too.
What’s going on in Windows?
And what about that Windows problem from
back in Chapter 1? Don’t we need to x that
so Break Neck runs on Macs and PCs?
brain
power
Why would Internet Explorer’s and Opera’s caching of requests cause a
problem in the Boards ‘R’ Us application? Will this also create trouble for
customers using the Break Neck pizza order form? And what should we
do to try and x this problem?
The Opera browser does
the same thing that IE
does in this situation: it
caches URLs.