weatherwax
Programmer
I know how to prevent my html from being cached.
But I would like my javascript-file I included to stay cached.
So my question is: do you know a way that a .js file - that is used on several pages - stays in the clients cache and is not reloaded everytime the user visits this pages.
my no-cache commands:
Response.AddHeader "cache-control", "private"
Response.CacheControl = False
Response.AddHeader "pragma", "no-cache"
Response.ExpiresAbsolute = #January 1, 1990 00:00:01#
Response.Expires=0
the js file is included with <!--#include file="myfile.js"-->
thank you
weatherwax
But I would like my javascript-file I included to stay cached.
So my question is: do you know a way that a .js file - that is used on several pages - stays in the clients cache and is not reloaded everytime the user visits this pages.
my no-cache commands:
Response.AddHeader "cache-control", "private"
Response.CacheControl = False
Response.AddHeader "pragma", "no-cache"
Response.ExpiresAbsolute = #January 1, 1990 00:00:01#
Response.Expires=0
the js file is included with <!--#include file="myfile.js"-->
thank you
weatherwax