Re: OT: Prevent Caching js Files

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 51126
interpreted = N
texte = Ken,How will your method prevent caching? If WebDNA places the javascript into the page using [include], then we still run the risk of having the page (with the js source) cached by the browser. On 6/16/03 8:49 PM, Kenneth Grome wrote:> Browsers always cache .js files when they are retrieved like this. > There's no way to guarantee that they won't, even if you put expired > MIME header tags into the file, because some browsers ignore them and > reload these files from cache anyways. > > Alain Russell's method of renaming the .js file every time it changes > is okay, but it is probably faster and more efficient (not only for > the server but also for the browser) to put your javascript code into > an include file. Then webdna can include it in the .tpl page before > it leaves the server. By using raw=T the code on the .js page will > not be interpreted: > > [include file=ScriptName.js&raw=T] > > And of course, whenever the .js file is changed webdna will include > the changes automatically. --------------------------------------------------------------------- Clint Davis Webmaster / Interactive Media Specialist Gray Loon Marketing Group, Inc. http://www.grayloon.com 204 Main Street | Evansville, IN 47708 | Phone:812-422-9999 --------------------------------------------------------------------- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: OT: Prevent Caching js Files (Alex McCombie 2003)
  2. Re: OT: Prevent Caching js Files (Kenneth Grome 2003)
  3. Re: OT: Prevent Caching js Files (Clint Davis 2003)
  4. Re: OT: Prevent Caching js Files (Kenneth Grome 2003)
  5. Re: OT: Prevent Caching js Files (Alain Russell 2003)
  6. Re: OT: Prevent Caching js Files (Jason Ludwig 2003)
  7. Re: OT: Prevent Caching js Files (Alex McCombie 2003)
  8. OT: Prevent Caching js Files (Clint Davis 2003)
Ken,How will your method prevent caching? If WebDNA places the javascript into the page using [include], then we still run the risk of having the page (with the js source) cached by the browser. On 6/16/03 8:49 PM, Kenneth Grome wrote:> Browsers always cache .js files when they are retrieved like this. > There's no way to guarantee that they won't, even if you put expired > MIME header tags into the file, because some browsers ignore them and > reload these files from cache anyways. > > Alain Russell's method of renaming the .js file every time it changes > is okay, but it is probably faster and more efficient (not only for > the server but also for the browser) to put your javascript code into > an include file. Then webdna can include it in the .tpl page before > it leaves the server. By using raw=T the code on the .js page will > not be interpreted: > > [include file=ScriptName.js&raw=T] > > And of course, whenever the .js file is changed webdna will include > the changes automatically. --------------------------------------------------------------------- Clint Davis Webmaster / Interactive Media Specialist Gray Loon Marketing Group, Inc. http://www.grayloon.com 204 Main Street | Evansville, IN 47708 | Phone:812-422-9999 --------------------------------------------------------------------- ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Clint Davis

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Authorize.Net (2003) no global [username] or [password] displayed ... (1997) Whats wrong with this code? (1998) Setting up shop (1997) WebCat2b12 CGI Mac -- Problems propagating the cart through (1997) Announcing general availabilty of WebDNA 4.5 release (2002) shoppingcart reload qty (1997) Error Lob.db records error message not name (1997) MasterCounter and capitalization (1997) ShowIf & HideIf Question? (1998) international time (1997) [WebDNA] MD5 encryption (2011) Problems reading files created by WC (1997) AE aware WebCatalog.acgi? (1997) A quickie question (1997) Emailer (WebCat2) (1997) WebCatalog2 Feature Feedback (1996) Slow Server (2005) IRC Channel (2003) f2 download problems (1997)