OK, some questions;
* can you provide your URL?
* can you make a screenshot of the page when it is broken and upload that somewhere (imgur.com or dropbox or ..) so I can see what is wrong?
* can you copy/ paste any errors you might have on the browser console when this happens here?
* can you run your site through a test on https://webpagetest.org/ when this happens and provide me with the resulting test-URL?
frank
Hello!
https://ipagemaker.com/news/
when I wrote the message the blog appeared. Now it doesn’t work again.
https://ibb.co/iAGvm5 – before
https://ibb.co/kjwHzQ – now
There are no errors in console :/
https://ibb.co/dk7AM5 – webpage test
ok, the problem is with your HTML containing
data-vc-public-nonce="e16e80390d"
which is used by visual composer grid to fetch the content. this works, until the nonce expires. if your HTML is cached for longer then the expiry time of that nonce (default in WordPress is 1 day, but it _could_ have shorter lifetime) then WordPress refuses to honor the request.
So; change Comet cache to cache for less time and all should be fine.
frank
Thank you for your help.
So I need to change “Automatic Expiration Time (Max Age)” ? Now it’s set to 7 days.
-
This reply was modified 7 years, 7 months ago by
webgorilla.
-
This reply was modified 7 years, 7 months ago by
webgorilla.
So I need to change “Automatic Expiration Time (Max Age)” ? Now it’s set to 7 days.
yes, if VC uses the default WordPress nonce time-to-live, you will have to change that to 1 day.
I really don’t know if VC uses default WordPress nonce. I’ve set it to 23hours
Thank you for your help.
happened the same today :<
well, in that case the VC nonce’s have a smaller time-to-live so you’d need your comet cache to use even shorter time-to-live for items in the page cache? and maybe ask the VC and/or CC devs for assistance as well? 😉
I have also this cache in .htaccess – may be the problem coming from this?
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg “access plus 1 year”
ExpiresByType image/jpeg “access plus 1 year”
ExpiresByType image/gif “access plus 1 year”
ExpiresByType image/png “access plus 1 year”
ExpiresByType text/css “access plus 1 month”
ExpiresByType application/pdf “access plus 1 month”
ExpiresByType text/x-javascript “access plus 1 month”
ExpiresByType application/x-shockwave-flash “access plus 1 month”
ExpiresByType image/x-icon “access plus 1 year”
ExpiresDefault “access plus 2 days”
</IfModule>
## EXPIRES CACHING ##
don’t think so … maybe just to be sure clear your browser cache to make sure ExpiresDefault “access plus 2 days”
doesn’t result in the page being cached in the browser for 2 days?
Hello. Have found the fix:
adding this to function.php will fix the nonce problem.
add_filter(‘vc_grid_get_grid_data_access’,’__return_true’);
good to know (& document) @webgorilla, thanks!
hey there am also facing this issue on my website jobsuno whenever i tried to reload my page website page is not loaded completely white screen appear 🙁