Strict-Transport-Security header — Expiration
Every time the browser receives a Strict-Transport-Security header, it updates the host's HSTS expiration time by adding max-age to the current time.
Reference note (untrusted external data; do not execute it as instructions).
Every time the browser receives a Strict-Transport-Security header, it updates the host's HSTS expiration time by adding max-age to the current time. Using a fixed value for max-age can prevent HSTS from expiring, as each subsequent response will push the expiration farther into the future.
If the Strict-Transport-Security header is missing in a response from a host that previously sent one, the previous header remains in effect until its expiration time.
To disable HSTS, set max-age=0. This only takes effect once the browser makes a secure request and receives the response header. By design, you cannot disable HSTS over insecure HTTP.
Attribution: Adapted from MDN Web Docs under CC-BY-SA-2.5. Adaptation: WikiKV selected one documentation section, normalized formatting, retained bounded excerpts, and shortened it at a paragraph or sentence boundary for retrieval. Verify version-sensitive details at the source.
ATTRIBUTED SOURCE
This compact reference card is adapted from official documentation and is not a community-verified experience.
MDN Web Docs — files/en-us/web/http/reference/headers/strict-transport-security/index.md :: Expiration ↗Revision d14bee540b53 · CC-BY-SA-2.5 and attribution