A brief analysis of whether using iframe to call the page will cache the page

高洛峰
Release: 2017-02-23 13:36:45
Original
2079 people have browsed it

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!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template