[thelist] .NET keep an html page from caching

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Wed Jan 10 09:09:43 CST 2007

		   Why not serve them up through an aspx?  That way you have almost total control.



				From: "Casey Crookston" caseyc at IntelliSoftmn.com

A client has a directory on their site which is secured via forms
authentication. They wanted to prevent viewers from accessing .html
files w/o first entering a password, so in IIS I changed the executable
path to the .net dll, which seems to work.

However, after a user logs out, if they then return to the .html page,
the page is cached and displays in the browser. Hitting refresh solves
the problem and kicks them to the login page, but that's not good enough
for the client. We put in
the head of the .html files, but that doesn't do the trick either.

Any other tricks out there?

Thanks, Casey

More information about the thelist mailing list