Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-25-2012, 11:54 AM   PM User | #1
peter089
New Coder

 
Join Date: Oct 2012
Posts: 10
Thanks: 2
Thanked 0 Times in 0 Posts
peter089 is an unknown quantity at this point
How to disable caching with .htaccess?

I want to disable page caching from google and other search engines using .htaccess. Does anyone know what code should i use in the .htaccess file to disable caching?
peter089 is offline   Reply With Quote
Old 12-28-2012, 06:45 AM   PM User | #2
Ctechinfo
New Coder

 
Join Date: Sep 2012
Posts: 88
Thanks: 3
Thanked 3 Times in 3 Posts
Ctechinfo is an unknown quantity at this point
The object being your site/page stays private (not found in search engines)?
Ctechinfo is offline   Reply With Quote
Old 12-30-2012, 09:29 PM   PM User | #3
byrondallas
New Coder

 
Join Date: Jul 2011
Location: USA
Posts: 39
Thanks: 0
Thanked 1 Time in 1 Post
byrondallas is an unknown quantity at this point
If your referring to google returning a cached version of your site, then this is what you want. Just add this to the head section of your pages:

Code:
<meta name="robots" content="noarchive">
And that should stop google and other search engines from showing a cached version of your site.
byrondallas is offline   Reply With Quote
Old 01-19-2013, 03:13 PM   PM User | #4
sunilmkt
New Coder

 
Join Date: Jan 2013
Location: India
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
sunilmkt can only hope to improve
I want to know you, you want to disable whole site or any individuals files or directory.
sunilmkt is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:54 AM.


Advertisement
Log in to turn off these ads.