How to Disable cache for website?

You can disable caching for your website through .htaccess file. You can add following code to your .htaccess file:

 

<FilesMatch "\.(css|flv|gif|htm|html|ico|jpe|jpeg|jpg|js|png|pdf|swf|txt)$"> <IfModule mod_expires.c> ExpiresActive Off </IfModule> <IfModule mod_headers.c> FileETag None Header unset ETag Header unset Pragma Header unset Cache-Control Header unset Last-Modified Header set Pragma "no-cache" Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Expires "Mon, 10 Apr 1972 00:00:00 GMT" </IfModule> </FilesMatch>

 

  • 0 Usuários acharam útil
Esta resposta lhe foi útil?

Artigos Relacionados

Can i get SSH access with my hosting plan?

Sorry, we do not provide SSH connection to our clients. For that you will need your own...

Where can I find cPanel tutorials?

Check cPanel docs :http://www.cpanel.net/docs/cpanel/

How do I use .html files to run SSI (Server Side Includes)?

Apache Handlers This is what you would use to specify how to treat file types. By default, .html...

Does cPanel support IMAP protocol?

CPanel has support for both POP3 and IMAP. You would use "mail.yourdomain.com" for the incomming...