Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Caching js script files

Status
Not open for further replies.

sirlojik

Programmer
Joined
Mar 29, 2005
Messages
178
Location
UG
Hi all,
Ive been wondering, are js files cached by the browser on default? if that's the case then i don't think it works or im getting it wrong. everytime i reload my browser window the scripts are re-downloaded. is there a way to ensure they get cached?

---------------------------
 
are js files cached by the browser on default

It depends on the default settings for each browser. There are many browsers on many operating systems, and each will have their own default settings. Asking a blanket question to try and get an answer for all is pointless.

is there a way to ensure they get cached?

No. If a user has turned caching off, then why should we as developers be able to override this?

Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top