Recently, there is a project in hand that needs iframe to call the page that changes every day. Later, I thought if iframe can cache the page, so I wrote a demo to demonstrate the following. The result is as follows:
If the SRC of iframe is a static page, it may be cached, because the static page has 200 and 304 States
If the SRC of iframe is a dynamic page, it will not be cached, because the dynamic pages are all 200 states
If the SRC of iframe is a pseudo static page, you need to analyze whether the pseudo static page will have 304 state and cache some of them
Hope it can help children’s shoes with the same problems.