开发者

Using iframes to add dynamic content to statically cached pages

开发者 https://www.devze.com 2023-01-14 05:07 出处:网络
I have a wordpress based site which makes use of a full page caching system. Problem is that I need to add dynamic content for logged in users. Right now I\'m keeping the caching enabled for non-logge

I have a wordpress based site which makes use of a full page caching system. Problem is that I need to add dynamic content for logged in users. Right now I'm keeping the caching enabled for non-logged users and disabled for the logged ones via cookie check.

Would inserting the dynamic content in an iframe be an acceptable solution to extend the full page caching to all the users? Or 开发者_如何学Pythonany better ways?


Another approach would be to pull in the dynamic contents via AJAX. Of course your page will not be accessible without Javascript, but that may or may not be an issue.

0

精彩评论

暂无评论...
验证码 换一张
取 消