0

Scenario: I have a post page with iframe with a dynamic src with time limited token, example

<iframe src="https://xxxxxx.com/?token=dynamic_time_limited_key"></iframe>

The time limited token is generated by my side and the src is cross domain. The Iframe is loaded by javascript after clicking view button.

Problem:
Using WP Rocket, it caches the inline javascript and the iframe src along with its time sensitive token, which cause the iframe not to work when token expired. Same problem with cloudflare for wordpress when set to cache everything.

Question:
How to use wprocket caching and cloudflare cache everything for the post page without caching the particular iframe element src (let it remain dynamic)?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.