What are the entry requirements for taking back the mandatory jump to HTTPS after joining the preload list?
What are the thresholds for joining the preload list after enabling the forced jump to HTTPS? According to the specifications, there are only two strict conditions: when using preload, the max-age should be set to at least 31536000, which is more than a year, and it must be used with includeSubDomains at the same time.The card point is usually not in the 301 redirect configuration within the station, but in whether the domain has been submitted to the browser's preload list - these two conditions are optional optimizations when enabled in the ordinary mode, and once put on the list, they become entry conditions, and the difficulty of withdrawal also comes from this.
The response header and preloading list do not manage the same batch of visitors
Strict-Transport-Security This response header only affects browsers that have already accessed the site using HTTPS: it remembers that 'this domain will use an encrypted connection in the future' during its validity period. The preloading list is another mechanism; after the domain is submitted, the browser already knows to use HTTPS directly before the next visit, and the two have different audiences and effective timing.
Therefore 'deleting the response header' and 'exiting the list' are two different things. The header can be withdrawn at any time, but it cannot remove the records that the browser has already remembered; the records on the list side are also not controlled unilaterally by the site's response header on that day, and they will not disappear synchronously just because preload is no longer issued one day. This is also why many sites still see the browser forcing a jump after changing the configuration.
Why must an encrypted request be made when trying to withdraw?
The specification document has a sentence that is easily overlooked: By design, it is not possible to disable HSTS through an insecure HTTP connection. To disable it, you need to set max-age to 0, and this value only takes effect after the browser initiates a secure request and reads the response header.
This generates a practical sequence problem. If the site's certificate has expired or the HTTPS service has been withdrawn, the browser cannot obtain the response with max-age=0, and the old record can only wait for natural expiration. In other words, the premise of the recall action is that the encryption layer is still available, first ensuring that HTTPS can respond normally, and then discussing revocation.
Three things need to be confirmed before entering the list.
A validity period of at least one year means that all subdomains must be able to establish encrypted connections throughout the year, and includeSubDomains expands the scope to every subdomain. It is recommended to confirm each item before going online.
- Is the entire site stable in providing encrypted connections, including temporary test subdomains and old event pages?
- Is the automatic renewal of certificates already at the deployment layer, so that in a one-year window, it cannot rely on manual reminders to renew?
- Are there any residual dependencies on insecure connections within the site, which will fail directly after skipping?
The third point is the most likely to cause problems in a real overhaul. It is more efficient to clean up the mixed content first before considering it on the list, rather than checking item by item after it is added in.
Which layer should the configuration within the site be changed?
For a content management system developed in Go language, it is important to distinguish between forced redirection and the position of the response header dispatch. AnQiCMS itself provides management capabilities for 301 redirections, used to redirect old addresses to new addresses;And Strict-Transport-Security belongs to the access layer response header, it is usually added in the gateway or server configuration in front of the site.The deployment method has a direct impact on this layer: when using Baota panel or LNMP environment, modify the site configuration file; when deploying using Docker image, modify the server configuration in the container layer; the default port 8001 listened by the program is just the entry point on the application side, and the header is not generated by this layer.
After modification, it is recommended to use a clean browser instance to verify: first confirm that the max-age value in the headers of the encrypted request meets the expected value, and then confirm that the 301 redirect from the old address still points to the correct target.
Common questions
Question: If you remove preload from the header, does it mean you are out of the list?Answer: No. The records on the list are maintained by the submitter according to their own process, and removing the header from the site will not make the records automatically disappear. The browser will still force a secure connection on the first visit.
Question: Why is it still redirected after setting max-age to 0?Answer: This value must be delivered to the browser through the response header of a secure request. If HTTPS is not available at this moment, the browser cannot read this instruction and can only wait for the original record to expire.
Question: Can it be on the list if encryption is only opened on the main domain and subdomains are still in plain text?Answer: The requirement for entry on the list is to include the range of subdomains, which means that all subdomains are included in the commitment for this year. If there are subdomains that cannot support encrypted connections, this level should be resolved first before deciding whether to submit.