Caching Question

  • Thread starter Thread starter Arman
  • Start date Start date
A

Arman

I have some java scripts on my page that i want the browser to cache,
but it doesnt. is there some sort of a http header or any way that i
could force the broswer to cache the java scripts on my page?
im very lost and any help is appriiated.
THANX
 
Arman said:
I have some java scripts on my page that i want the browser to cache,
but it doesnt. is there some sort of a http header or any way that i
could force the broswer to cache the java scripts on my page?

The browser caches entire files, not individual scripts. If your script is
inline within the HTML file (and syntactically correct), it *will* be cached.
You can also make a call to an external script file, and the .js will be
cached.
 
Back
Top