Recently, I have a project that needs to use an iframe to call a page that changes every day. Later, I thought about whether the iframe will cache the page, so I wrote a demo to prove it, and the result is as follows:
If the src of an iframe is a static page, it may be cached, because the static page has 200 and 304 statuses
If the src of the iframe is a dynamic page, it will not be cached, because the dynamic pages are all 200 status
If the src of an iframe is a pseudo-static page, it is necessary to analyze whether the pseudo-static page will have a 304 state, and if so, it will be cached.
Hope it will be helpful for children's shoes that encounter the same problem.