diff --git a/packages/hint-http-cache/src/expires-header.md b/packages/hint-http-cache/src/expires-header.md new file mode 100644 index 00000000000..88c6c19a101 --- /dev/null +++ b/packages/hint-http-cache/src/expires-header.md @@ -0,0 +1,10 @@ +# Expires attribute in `Set-Cookie` headers + +The `Expires` attribute in a `Set-Cookie` header defines when the cookie should expire. + +It must follow the **RFC 6265** date format: + +⚠️ **Notes:** +- The date must use the `GMT` timezone. +- Invalid formats or missing timezone cause browsers to ignore the cookie. +- When using `Max-Age`, `Expires` may be omitted.