Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you prevent Internet Explorer from caching HTML without using random query-strings

We are currently using random query-strings to prevent Internet Explorer from caching HTML on postbacks, but we are in the process of implementing URL re-writing and it would be nice if we could remove these random parameters.

What's the best pratice in this situation?

like image 725
André Pena Avatar asked Dec 22 '22 06:12

André Pena


1 Answers

Have you tried the no-cache and expires meta-tags?

Other than that, random generated query-strings are the way to go. In my opinion, its not not that big of a deal. domain.com/stories/man-walks-on-moon/s34b is not exactly making my eyes bleed. And you will still achieve great indexing as far as search engines go.

like image 175
cllpse Avatar answered May 02 '23 20:05

cllpse