Cache control

Every time I open my website I have to refresh it to see result
How can I diasble cache

Hello there,

You may want to check this article out:

1 Like

You can disable caching by using or editing .htaccess. And if you’re using wordpress, there’s a plugin for it which you can set the expiration date of the images, files (including html and css).

Can you tell step wise step to disable it via
.htaccess

simply google it.

1 Like

Yes, there’s a lot of quick-tutorial on internet that can easily help you.

Will it increase the hits

This should disable the cache on everything
put this in .htaccess file inside of your htdocs

 # no cache 
 <IfModule mod_headers.c>
 Header set Cache-Control "no-cache, no-store, must-revalidate"
 Header set Expires 0
 </IfModule>



A better option is to adjust the behavior of cache in your browser… if you use it for developing !


NOTE that HTTP/S requests to your website will grow rapidly

5 Likes

Yes, disabling cache will slow down your site and increase hits usage.

We enable cache on all websites by default because most websites benefit from having it. If disabling cache is always the better option, nobody would use cache.

5 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.