Re: OT: Prevent Caching js Files

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 51121
interpreted = N
texte = >I'm not sure what you mean. >We have tried... > > >No Luck! 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. -- Sincerely, Kenneth Grome ------------------------------------------------------------- My programmers write WebDNA code at $18 an hour or less! -------------------------------------------------------------------------------------------------------------------------- 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)
>I'm not sure what you mean. >We have tried... > > >No Luck! 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. -- Sincerely, Kenneth Grome ------------------------------------------------------------- My programmers write WebDNA code at $18 an hour or less! -------------------------------------------------------------------------------------------------------------------------- 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/ Kenneth Grome

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:

Where's Cart Created ? (1997) [SearchString] usage (1997) A simple email page? (1999) WebCat2b13MacPlugIn - more [date] problems (1997) [WebDNA] =?ISO-8859-1?Q?R=E9p_=3A_=5BWebDNA=5D_=5Bshowif=5D_probl?= (2009) Multiple fields on 1 input (1997) WebCat B13 Mac CGI -- Frames question (1997) HTML encoding in URLs (1997) Add all products to cart at once? (1997) Need help with emailer- 2 issues (1997) https bs (2004) [WebDNA] search by range of dates (2009) RE: Automatic Forwarding using WebCat (1997) Searching multiple Databases (1997) details (2003) StandardConversions.db (1998) Question about replacing words (1998) Multiple catalog databases and showcart (1997) determining plug-ins? (1998) Possible Bug in 2.0b15.acgi (1997)