The intermediate response code for pre-loading resources on the first screen, why is it only issued in multi-path multiplexing protocols in most cases?

📅 October 12, 2026 Eye 10

The intermediate response code used for preloading resources on the first screen, and why it is sent only in most cases on multiplexing protocols, is due to compatibility and security concerns: under old protocols, the client's handling of multiple responses is not stable, and most browsers therefore limit support to protocol 2 or higher versions. This intermediate response itself solves the waiting time - while the server is preparing the page, it first tells the client 'which sources will be used later on'.

Which part of the waiting is solved by the intermediate response code?

In a first-screen loading, the time-consuming composition is not just the page itself: establishing a connection, negotiating encryption, retrieving styles and scripts, every step has to wait for the previous step. When the page is organized on the server side, the client is completely idle during this time. The role of this intermediate response is to make use of this gap: while the server is preparing the final response, it first returns a prompt indicating the source of the resources to be used later, the client can preconnect, or start preloading.

What kind of headers are usually placed in the prompt?

According to the document, this prompt is mainly used in conjunction with link headers, its semantics is to indicate the resources to be loaded; at the same time, it can also carry a Content Security Policy header that takes effect during the prompt processing stage. That is to say, it is not 'send the page out in advance', but to inform two types of information that can be determined without relying on the page content: the source address and the strategy. The actual content is still provided by the final response.

Why limit it to multiplexing protocols

The document gives the reason for compatibility and security, and explicitly recommends sending only on protocol 2 or higher versions unless it is known that the client can correctly handle intermediate responses;Most browsers also limit their support for this to protocol 2 and above. The difference lies in how the protocol handles a request corresponding to multiple responses. Multiplexing protocols naturally separate multiple responses on the same request into independent frames, and intermediate responses will not pollute the final response state.Under the old protocol, the client needs to split the two segments of response on the same connection, and this kind of split is most likely to cause problems in the historical implementation, even treating prompts as incomplete pages.The risk falls on the clients with the worst compatibility, while the benefit only manifests in the time spent on establishing a connection on the first screen.

Can the site layer be directly matched

To confirm three things: whether the program will generate intermediate responses, whether the front-end layer will discard them, and whether the protocol is a multiplexed version. The program side should be able to return a prompt before the page is organized, which usually depends on the framework or server module support. The front-end layer is the most common breakpoint: the caching, reverse proxy, and compression links may only pass through the final response, and the intermediate response is ignored during forwarding. The deployment of AnQiCMS is generally the front-end server proxying to the default listening port 8001, and it is necessary to verify the protocol version and forwarding behavior of each hop on this link, rather than just looking at the site's own configuration.

What situations should not rely on it

In three cases, the income is close to zero. When all resources are from the same source and there are no external domains, there is no time saved in pre-connection; when the final response itself can be returned in a very short time, the lead time of the prompt is not enough to complete a connection negotiation;When there are components on the chain that will consume intermediate responses, even if it is configured, there is no effect. Conversely, pages with a large number of third-party sources and high negotiation time are the real scenarios where this capability is truly applicable.The importance of page loading speed for content sites has an official statement, AnQiCMS says it has a significant improvement compared to traditional PHP programs, can carry about 5 million PV on a single machine, but this kind of intermediate response only solves a small part of the connection establishment on the first screen, and it cannot replace resource size and caching strategy.

Common questions

Question: What will happen if the client does not support this response code? Answer: According to the protocol, it will be ignored as an intermediate response, and the final response will still be returned normally; the risk lies in the processing differences under old protocols, which is why it is recommended to limit it to protocol 2 and above.

Question: How much can the first screen load time be saved after it is turned on? Answer: It depends on the number of connection negotiations to wait for originally, saving the time for connection establishment and negotiation, not the page generation time.

Question: If the prompt is seen in local testing but not online, what should be checked first? Answer: First check the forwarding behavior and protocol version of the front-end layer, and then confirm at which layer the program can issue the prompt.

Related articles

How to check the status code conditions and inheritance level when the security response header is added but not present in some responses?

The security response header is added but not visible in some responses, usually stuck at two places: first, the header addition instruction only takes effect for specific response codes, the effective codes listed in the mainstream Web server documentation include two hundred successful segments and three hundred redirects, non-successful responses need to be added unconditionally with the always parameter; second, the hierarchical inheritance rule - once the header addition instruction is defined at the same level, the entire set of definitions at the upper level no longer inherits. The troubleshooting sequence is to first reproduce the response code missing the header, and then locate which level of configuration generates it.

2026-10-12

After splitting search and training into two switches, the access rules should be judged according to which purpose

On September 15, 2026, an edge platform announcement divided search, AI training, and AI agents into three independent controls, so the site does not have to choose between retaining search and blocking training. The announcement also provided two ratios: the mixed-purpose crawler accounted for 36.6% of the verified crawling traffic, less than 1% of the site side would block search crawlers, and about 17% restricted AI training. After the switches are opened, the access rules should be judged according to the purpose of access, not according to the source domain.

2026-10-12

There is a measurement that says the scraping scripts only follow a part of the exclusion rules, where is the difference in the ratio

A measurement covering thirty-six institutional sites, forty days of traffic, and about one hundred and thirty self-reported identity scraping scripts shows that the compliance rate varies greatly by instruction type: about 60.9% for scraping frequency instructions, about 31% for precise path prohibition, and about 30.7% for whole section prohibition; and less than four in ten scripts will re-read the exclusion file within one hundred and sixty-eight hours. These numbers indicate that relying solely on the exclusion file is not sufficient, and there must also be anti-crawling and permission layers within the site.

2026-10-12

When the Robots file itself is unreadable, what rules does the crawling party follow?

The original agreement divides the failure to read into two opposite results: when the response status code falls within the five hundred to five hundred and ninety-nine segment of server errors, the crawling party must consider it as completely prohibited; when it falls within the four hundred to four hundred and ninety-nine segment of client errors, the crawling party can access any resource on the server. The agreement also states that these rules are not access authorization and cannot replace content security measures; the background of the station and the user group permissions are the real door.

2026-10-12

In the front-end monitoring, the loading time of cross-domain images is all zero, which response header should be added

The loading time of cross-domain images is read as zero in the front-end monitoring, the missing is the timing pass response header. The official document defines: this header specifies which sources are allowed to see the attribute values obtained through the resource timing interface, otherwise these values will be reported as zero due to cross-domain restrictions. The value can be a wildcard to release all sources, or a comma-separated list of sources. It only affects timing readings and does not change the access permissions of the resources, so adding this header solves the attribution problem, not the access problem.

2026-10-12

What is the situation when the login credentials are partitioned by the top-level site when embedded by other sites?

Login credentials with partition attributes are stored separately by the top-level site: one is read when the same address is accessed directly, and another is read when the page is embedded by other sites, and they do not share. The official document states that this attribute indicates that credentials should be stored using partitioned storage, and it must be set at the same time as the security mark, and it is recommended to bind the credentials to the host with a hostname prefix name instead of a registrable domain. If the site assumes that the login state is globally shared, it will not be read in the embedded scenario.

2026-10-12

Why does the program overwrite the entire site configuration file when saving settings, and why does it overwrite the rules I added myself?

When saving settings, the program overwrites the directory-level configuration file, taking away the manually added rules along with it, because these files are only one copy, generated in full by the program according to its own template. The same program PbootCMS has fixed this issue in the update record of V3.2.26: When Apache turns on pseudo-static, it misjudges the environment, causing the configuration file under the site directory to be overwritten every time it is saved. The approach is to separate the rules managed by the program from the rules added by operations and maintain them in two places, backup before modification, and compare item by item after modification.

2026-10-12

The explicit specification of an index in a list query is actually slower, in what situations will it degrade to a full table scan?

Writing a fixed index hint in a list query is equivalent to letting the optimizer give up the opportunity to choose a path based on statistical information: when the hint points to an index that does not match the current conditions, the query that could have used a covering index or range scan will be pushed to a more costly execution method, and further degraded into a full table scan when the conditions fail. The same program PbootCMS has fixed the issue of list tags degrading to a full table scan due to index hints in the update records of V3.2.26, and has unified the new libraries to be indexed by the title field.

2026-10-12