caching - Javascript used to include html, is it cached? -


i'm using method of creating .js file on server #1 contains document.writes write html code, simple js include inside html code on server #2 load html code (there multiple server #2's). replacing iframe method advantage being each server #2 owner controls own css.

the method works is. question has deal caching. each time page loaded on server #2 want .js reloaded, change on server #1. appears case on each browser tested, can rely on being default case, or dependent on browser settings? despite i've read on caching can't figure out triggers load case this.

you can control browser caching using http headers on server side. cache-control , cache-expiration. more here - http://www.w3.org/protocols/rfc2616/rfc2616-sec13.html


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -