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

A brief analysis of whether using iframe to call a page will cache the page
Recently, I have a project that requires using iframe to call a page that changes every day. Later, I wondered whether iframe would cache the page, so I wrote a demo to demonstrate it. The result is as follows:

If the src of the iframe is a static page, it may be cached because static pages have 200 and 304 status codes.
If the src of the iframe is a dynamic page, it will not be cached, because dynamic pages are all 200 status
If the src of the iframe is a pseudo-static page, it is necessary to analyze whether the pseudo-static page will have a 304 status. If so, it will be cached.

I hope this helps others who encounter the same problem.

<<:  JS ES new features template string

>>:  Add unlimited fonts to your website with Google Web Fonts

Recommend

js realizes the magnifying glass function of shopping website

This article shares the specific code of js to re...

Teach you step by step to develop a brick-breaking game with vue3

Preface I wrote a few examples using vue3, and I ...

Count the list tags in HTML

1. <dl> defines a list, <dt> defines ...

Detailed explanation of the use of filter properties in CSS3

Recently, when I was modifying the intranet porta...

A brief introduction to the simple use of CentOS7 firewall and open ports

Overview (official has more detailed description)...

Summary of common tool examples in MySQL (recommended)

Preface This article mainly introduces the releva...

vue.js downloads pictures according to picture url

Recently, when I was working on a front-end vue.j...

A brief discussion on how to choose and combine div and table

Page layout has always been my concern since I st...

CentOS 8.0.1905 installs ZABBIX 4.4 version (verified)

Zabbix Server Environment Platform Version: ZABBI...

How to reset the root password in mysql8.0.12

After installing the database, if you accidentall...

Detailed explanation of the usage of Object.assign() in ES6

Table of contents 2. Purpose 2.1 Adding propertie...