Recently I have a project that requires using iframe to call pages that change every day. Then I thought about whether iframe would cache the page, so I wrote a demo to demonstrate it. The results are as follows:
iframe If the src is a static page, it may be cached, because the static page has 200 and 304 status
If the src of the iframe is a dynamic page, it will not be cached, because the dynamic page has a 200 status
The src of the iframe is For pseudo-static pages, you need to analyze whether the pseudo-static page will have a 304 status, and if so, it will be cached
I hope it will be helpful to children who encounter the same problem.
For more analysis on whether using iframe to call a page will cache the page, please pay attention to the PHP Chinese website!