Jump to content

Can Prestahop 1.7 use dynamic cache?


Recommended Posts

Hi there,

I'm using Prestashop 1.7.8 on a shared Siteground hosting.
SiteGround offers the dynamic cache feature, a caching system for non-static resources which impeed non-necessary DB queries and many other optimizations.


Unfortunately with the standard PS 1.7.8 installation I was experiencing some problems:
- images both on category listing and product pages was stuck in loading
- the PS webservice which I use with shipping courier's labeling software was not showing the orders
- mostly all the website dynamic resources was not loaded properly

To overcome the problem I googled and found a solution by entire disabling the dynamic cache through the htaccess adding the line:
Header set Cache-Control "private"

<IfModule mod_headers.c>

        <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$">

                Header set Access-Control-Allow-Origin "*"

        </FilesMatch>



    <FilesMatch "\.pdf$">

      Header set Content-Disposition "Attachment"

      Header set X-Content-Type-Options "nosniff"

    </FilesMatch>

        Header set Cache-Control "private"

</IfModule>

 

There's any way to optimize my htaccess in order to disable the dynamic cache only for the resources truly "cacheble"?
Do you have any experience in configuring Prestashop for dynamic cache feature?

 

Kind regards.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...