Jump to content

CCC smart css and js issue


Recommended Posts

Smarty smart css and js issue:

I am using Imperva CDN (content delivery network) for caching the website. 

When I have enabled the smart js and css, i found that several times, the path for the css and js changes/re generates  ones in a while. as shown in below image it updates the theme-somestring.css file name. the same thing happening with Js as well.  (/themes/someshop/assets/cache/bottom-9351322210.js ) 

I Believe it is because of the smart cache and smart js enabled and cache expires? wdyt.

Issue

While CSS and JS file names are being changed /re generated automatically one in a while, and the css and js is being cached in the CDN, some of the users are seeing the website broken because they might be seeing the website with old .css file with old css url. 

image.thumb.png.c0ced4c7d5b96f4a2a16d1453f2cbae4.png

image.thumb.png.35743ee9e7540e21efdddd1e48750d3b.png

 

Possible Solution

1) do you have any solution, if yes can you post? 

2) at this moment I am thinking to clean the the CDN cache from the clean cache function in the BO. (clean the CDN cache while prestashop cache cleans), do you think this can fix this issue ?

3) do you know if i can get the trigger of above file name changes so that i can call the CDN  clean cache? 

 

image.png

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...