![Check out Enfold](https://kriesi.at/wp-content/themes/kriesi/images/banner-enfold.jpg)
Tagged: cache
-
AuthorPosts
-
October 11, 2019 at 12:09 pm #1147098
I have been experiencing a strange caching issue.
When my caching plugin (WPROCKET) is active, it prevents fonts and videos loading even with ‘All cookies and services are accepted on first page load…’ active in ‘Privacy and Cookies’ if I deactivate WPROCKET I get the expected result. I.E. fonts and videos load without the user needing to accept or click on dialogue button.I have also seen this happen on another Caching Plugin I user on a different site. So it doesn’t seem to be only related to WPRocket.
Any ideas on how to fix.
October 12, 2019 at 2:29 pm #1147360Hey eddygame,
Where can we see and reproduce the problem you are having?
Best regards,
RikardOctober 14, 2019 at 10:31 am #1147784Hi Rikard,
I have provided details for you to take a look.
-
This reply was modified 4 years, 11 months ago by
eddygame.
October 17, 2019 at 2:02 am #1148737Hi,
Thank you for the update.
We can’t seem to reproduce the issue on our end. The cookies are set properly as shown in the screenshot below once we gave our consent to enable them. And we are also able to play the video.
Screenshot: https://imgur.com/a/9q7qjxC
Best regards,
IsmaelOctober 17, 2019 at 1:35 pm #1148916Hi, my understanding was that if I selected in the ENFOLD THEME the option for ‘All cookies and services are accepted on first page load’ in the privacy & coolie section, that this would mean that the fonts and videos would load WITHOUT the user having to click on accept the cookies? am I wrong in this assumption?
October 18, 2019 at 11:08 am #1149223Hi,
that this would mean that the fonts and videos would load WITHOUT the user having to click on accept the cookies?
Yes, that is correct. Sorry about that. I got a little confuse. We tested the site again, removed everything in the local storage and refreshed the page. The fonts are still loaded even if we didn’t accept the cookie because the “aviaCookieSilentConsent” cookie is still added to the local storage. All services will be enabled by default regardless of the cookie consent status as long as the cookie (aviaCookieSilentConsent) is present.
Example of the script where this condition can be seen at work:
var allow_continue = true; var silent_accept_cookie = document.cookie.match(/aviaCookieSilentConsent/); if( cookie_check && ! silent_accept_cookie ) {
Best regards,
IsmaelOctober 19, 2019 at 11:56 am #1149484Hi Ismael, when I view the site in incognito/private mode with a clean browser cache etc. The custom google font (used for headlines etc) and video don’t load, even with the correct option selected in the backend… ‘All cookies and services are accepted on first page load’.
October 21, 2019 at 6:05 pm #1149921I’m pretty sure that there is something in the theme/code which isn’t working correctly when a caching plugin is present. Or a file needs excluding from caching.
I’ve been running Enfold and WP Rocket on 10+ sites for a couple of years without issue. But since the last update, this problem has appeared.
October 23, 2019 at 4:59 am #1150361Hi,
Thank you for the update.
We are able to reproduce the issue. The script fails to create the following link tag or font resource in incognito mode because the “aviaCookieSilentConsent” is not set on load. We can’t reproduce the issue on our own installation though.
<link type="text/css" rel="stylesheet" href="//fonts.googleapis.com/css?family=Arvo" id="avia-google-webfont">
We’ll notify the team regarding the issue. Thank you for your patience.
Best regards,
IsmaelOctober 23, 2019 at 1:10 pm #1150499Hi Ismael, will this be addressed in the next update?
October 24, 2019 at 11:36 am #1150850Hi,
Thank you for the update.
We are not really sure if this is an issue with the theme because we are not able to reproduce the problem on our local installation. The resources are loading properly on incognito mode even when the “aviaCookieSilentConsent” is not added in the local storage. Do you have a staging version of the site, or any other site using Enfold?
Best regards,
IsmaelOctober 24, 2019 at 12:05 pm #1150859I’ve have provided a few sites below where I am having the same issues.
Like I said early, what happens in the correct style headline fonts do not render and the default font displays instead. Once I click the ‘accept cookie bar button’ and hit page refresh the correct styled google font will load.
October 28, 2019 at 1:13 pm #1151724Hi,
Sorry for the delay. In the “gamehunter” site the cookies are not set to be silently accepted on load, so the font doesn’t render properly. The “Lato” font loads fine once we accepted the cookies — same with the other sites. Did you change the settings?
Best regards,
IsmaelOctober 30, 2019 at 12:38 pm #1152285on the ‘gamehunter’ site I have it set to ‘All cookies and services are accepted on first page load, user can opt out” I thought that first would allow the fonts to load without user action.
November 3, 2019 at 2:50 pm #1153509Am I missing a setting where I can activate ‘silently accepted on load’ or is that the same as ‘All cookies and services are accepted on first page load, user can opt out” ?
November 8, 2019 at 2:52 am #1154803Hi,
Sorry for the delay. Just got back. Our developers said that it’s a cache issue and is currently looking for a solution.
Am I missing a setting where I can activate ‘silently accepted on load’ or is that the same as
That’s what the option is for, but for some reason it doesn’t work in your installation.
Best regards,
IsmaelNovember 9, 2019 at 4:34 pm #1155223Thanks for getting back to me Ismael, I’m pretty sure there is some conflict between the theme and wp-rocket caching plugin.
November 15, 2019 at 11:59 am #1157147Hi,
We found a fix for the cache issue according to our developer. We’ll add it in the next update. There’s a lot of related files that needs updating, so I wouldn’t be able provide you with the modification. You might have to wait for the upcoming version. We’ll close this thread for now. Please don’t hesitate oto open a new thread if any critical issue arise.
Thank you for your patience.
Best regards,
Ismael -
This reply was modified 4 years, 11 months ago by
-
AuthorPosts
- The topic ‘Caching Issue’ is closed to new replies.