MyBB Community Forums

Full Version: Which of these should I use to prevent a cached version of my forum (1.8.10)?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to prevent the search engines from offering the Cached version of my pages and I want the code to work across the entire forum which is using 1.8.10. I found this at HTMLGoodies.com:

<meta name="robots" content="noarchive">

It's very very old so do we need to change it at all to use it in 2017? I found this at WillMaster.com:

<meta http-equiv="cache-control" content="max-age=0">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="-1">
<meta http-equiv="expires" content="Tue, 01 Jan 1980 11:00:00 GMT">
<meta http-equiv="pragma" content="no-cache">

and supposedly it will work across all browsers which sounds way better than the first code. Lastly I found this at Tech-FAQ.com:

<meta http-equiv=”Pragma” content=”no-cache”>
<meta http-equiv=”Expires” content=”-1″>
<meta http-equiv=”CACHE-CONTROL” content=”NO-CACHE”>

but they mention it's for web hosts and is a server-side solution. So I don't know if they mean this code is intended for say, HostGator, or if it's for anyone who has access to their site's code.

Which of these should I use? Where is the code I have to change located and can you show a screenshot of the code before and after the changes? I like getting as much info as possible so I don't mess anything up. Thank you.

Edit: Changed title and changed the amount of space between my text and the code below it.
If you want to do this through the source code (honestly just put in the headerinclude template) you should add:
<meta name="ROBOTS" contents="NOARCHIVE" />
That should solve your problem. Keep in mind Google can sometimes take a while to update depending on the size of your site and amount of traffic to your site. Please let us know if you have any further questions Smile
I'll give it a try, thanks!

I found headerinclude (credit goes to Darth Apple) but I don't see a <head> tag in there. Can you type the completed code so I can see where I should put this tag? And it's not a big deal but are you sure it's "contents" and not "content"?