Jump to content

Header set Cache-Control max-age=0


Recommended Posts

Hi,

 

I have problem with prestashop 1.4. and 1.5. when I install it on hosting and starting testing then browser load all pages to cache. When I became registred and log in, all pages I visited before are cached that I am not registered, so I can't see my name until I hit F5. Other way when I log out, then all pages I visited as loged in show my name.

 

This I can solve with .htaccess and add this code

 

<IfModule mod_headers.c>
<Files *.php>
 Header set Cache-Control max-age=0
</Files>
</IfModule>

 

But this has really big influence on speed. Prestashop gets really slow and loading times of pages are from 2000 ms to 13000 ms. Because all pages do not use cache. Can anybody have idea what can be set different on hosting or what to do with this problem?

Link to comment
Share on other sites

×
×
  • Create New...