Page Caching Problem

Had a user today complain about a custom menu not displaying correctly when a page had been redrawn. He said he added Pragma=no-cache, Expires=-1 and Cache-Control=no-cache META tags but it still wouldn’t refresh the page unless the user hit F5.

 Anyway, the problem turned out to be bad ending HTML tags, seems you need to ensure that you add /> to your meta tags otherwise they get ignored and the page content will not be refreshed.

Here’s a sample of how the meta tags should look:

<META http-equiv=”Pragma” content=”no-cache”/>
<META HTTP-EQUIV=”Cache-Control” CONTENT=”no-cache”/>