Archive of UserLand's first discussion group, started October 5, 1998.

Re: JavaScript -based client-side includes

Author:Brad Pettit
Posted:12/22/1999; 10:54:31 AM
Topic:JavaScript -based client-side includes
Msg #:13834 (In response to 13807)
Prev/Next:13833 / 13835

If a browser is accessing the net thru a reasonably fast connection, preferences for the browser-cache should be set to "Always Update" in order to ensure fresh data. To improve performance, default preferences may be set to "Once per session" (IMO, an archaic setting that appears to depend on regular browser-crashes!).

In addition to the critical browser preference, correct cache-control (HTTP 1.1 or later) and/or "Pragma: no-cache" directives, even though they don't guarantee fresh data, are even more important now that data frequently passes thru multiple levels of cacheing proxies on its way to your browser. Since every external document (script, etc) is generally loaded via http, each relies on accurate cache settings on the server end, the browser end, and every point in-between.

This barely scratches the surface of cache-issues. A good basic cacheing tutorial can be found at http://www.mnot.net/cache_docs/

--Brad




This page was archived on 6/13/2001; 4:53:50 PM.

© Copyright 1998-2001 UserLand Software, Inc.