Created
May 29, 2019 19:33
-
-
Save robertmorel-uk/6507bfed220fc5b3ca92b9f5d0f747be to your computer and use it in GitHub Desktop.
Clear cache in cfheader.cfm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfoutput> | |
<cfheader name="expires" value="#now()#"> | |
<cfheader name="pragma" value="no-cache"> | |
<cfheader name="cache-control" value="no-cache, no-store, must-revalidate"> | |
<!--- | |
The first line says any existing cached items must be expired immediately | |
The second line informs the browser not to cache | |
The third line is like telling the browser to do ctrl F5 and always get a fresh copy from the server when loading the page. | |
---> | |
</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment