![]() |
Home Email me SEARCH |
Monthly Archive
Blogroll
Adeleida
Alan Bell
Alan Lepofsky
Andy Donaldson
Arne Nielsen
Ben Langhinrichs
Ben Poole
Bill Buchan
BlogSphere
Brian Benz
Bruce Elgort
Captain Oblivious
Carl Tyler
Chris Byrne
Chris Coates
Chris Linfoot
Chris Miller
Chris Toohey
Chris Whisonant
Christian Brandlehner
CodeStore
Craig Schumann
Curt Stone
Damien Katz
Declan Lynch
Devin Olson
DomBlog.de
domlike.net
Duffbert
Ed Brill
Fabian Nirman
Ferdy Christant
Gayle Elgort
Grant Bingham
Gregg Eldred
Hassan Voyeau
Heini Schwammerl
Ian Irving
Jack Dausman
Jens-Christian Fischer
Jerry Carter
Johan Känngård
John Mill
John Roling
John Vaughan
Just Enough Governance
Justin Knol
Kathy Sierra
Keith Strickland
Ken Yee
Kevin Pettitt
Kurt Higley
Lance Spellman
Laurette Rynne
Mac Guidera
Matt and Jess
Matt White
Mikkel Heisterberg
Mrs Elsmore
Nathan Freeman
News4Notes
nsftools
OpenNTF Blog
Paul Mooney
PhotoTechno Reflections
Ray Bilyk
Richard Schwartz
Richard Spense
Rob Novak
Rob Wunderlich
Rocky Oliver
Roy Holder
Scott Good
Sean Burgess
Simon Peek
Squirrelly Notes
Stan Rogers
Stephan H. Wissel
Steve Castledine
Susan Bulloch
Taking Notes
Tim Rynne
Tim Tripcony
Tom's Rant
Turtle
Vince Schuurman
Volker Weber
Warren Elsmore
Alan Bell
Alan Lepofsky
Andy Donaldson
Arne Nielsen
Ben Langhinrichs
Ben Poole
Bill Buchan
BlogSphere
Brian Benz
Bruce Elgort
Captain Oblivious
Carl Tyler
Chris Byrne
Chris Coates
Chris Linfoot
Chris Miller
Chris Toohey
Chris Whisonant
Christian Brandlehner
CodeStore
Craig Schumann
Curt Stone
Damien Katz
Declan Lynch
Devin Olson
DomBlog.de
domlike.net
Duffbert
Ed Brill
Fabian Nirman
Ferdy Christant
Gayle Elgort
Grant Bingham
Gregg Eldred
Hassan Voyeau
Heini Schwammerl
Ian Irving
Jack Dausman
Jens-Christian Fischer
Jerry Carter
Johan Känngård
John Mill
John Roling
John Vaughan
Just Enough Governance
Justin Knol
Kathy Sierra
Keith Strickland
Ken Yee
Kevin Pettitt
Kurt Higley
Lance Spellman
Laurette Rynne
Mac Guidera
Matt and Jess
Matt White
Mikkel Heisterberg
Mrs Elsmore
Nathan Freeman
News4Notes
nsftools
OpenNTF Blog
Paul Mooney
PhotoTechno Reflections
Ray Bilyk
Richard Schwartz
Richard Spense
Rob Novak
Rob Wunderlich
Rocky Oliver
Roy Holder
Scott Good
Sean Burgess
Simon Peek
Squirrelly Notes
Stan Rogers
Stephan H. Wissel
Steve Castledine
Susan Bulloch
Taking Notes
Tim Rynne
Tim Tripcony
Tom's Rant
Turtle
Vince Schuurman
Volker Weber
Warren Elsmore
Yesterday I posted about adding the current date/time as a dummy parameter to the end of a url in an AJAX request ...to ensure that the request would fetch a fresh set of data. Julien Bottemanne was kind enough to post a comment about some optimization that one may want to do to help keep the caches of users' browsers from getting populated with the XML streams from these requests. Doing a little searching on the IBM site, I found some references to explain Julien's brilliant suggestion.
IBM has documented this type of use of a Web Site Rule (the HTTP response header type) to prevent caching. Here are the suggestions from Julien's comment and from the IBM posting:
- Create a Web Site Rules document
- Provide a meaningful Description, like 'Prevent caching on ReadViewEntries'
- Set the 'Type of rule' to be 'HTTP response headers'
- Set the 'Incoming URL pattern' to whatever makes sense. So in this case it might make sense to establish a standard for your shop to use when sending ajax requests to the server. Perhaps agree that all ajax calls should be done against views that have been created for this purpose, so that the view alias name begins with the characters 'vwAjax'. Then specify an Incoming URL pattern of '*.nsf/vwAjax*'
- Set 'HTTP resonse codes' to '200, 206'. 200 is the standard success code. 206 indicates that a partial GET request has been successful (see RFC 2616)
- Set 'Expires header' to 'Always add header', and 'Specify as date', specifying a date far in the past (01/01/1990 is recommended in the IBM documentation)
- The IBM recommendation for 'Custom headers' is to populate as follows:
- Name: Cache-Control Value: no-cache Override: Yes
- Name: Pragma Value: no-cache Override: Yes
- Name: Last-Modifed Value: Fri, 01 Jan 1990 00:00:01 GMT Override: Yes

Thanks Julien!
Comments :
No comments.











