1. [Home](<https://delaparra-services.nl/>) 
1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) 
1. [Strict-Transport-Security](<https://delaparra-services.nl/knowledge-hub/strict-transport-security>)

  

Category: HTTP headers 

# Strict-Transport-Security

  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    

## What is Strict-Transport-Security?

 

Strict-Transport-Security: HSTS — tells the browser to use HTTPS for this domain for the given number of seconds, even if the user typed http://. ` Strict-Transport-Security `, or HSTS, tells browsers to use HTTPS for your domain for a set period, even if someone types ` http:// ` or follows an old link. ` max-age=63072000; includeSubDomains ` means two years, for all subdomains.

 

Definition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)

 

## Frequently asked questions about Strict-Transport-Security

  

### How is Strict-Transport-Security used in practice?

 

This closes a gap. Without it, the first request to ` http:// ` can be intercepted on a hostile network before your redirect to HTTPS takes effect.

    

### What should you keep in mind with Strict-Transport-Security?

 

Roll it out carefully. Start with a short ` max-age `, check that every subdomain works over HTTPS, then increase it. With ` preload ` and a submission to the browser preload list, browsers enforce HTTPS even on the very first visit. Removal from that list takes months, so only preload once you are sure every subdomain, including old ones, supports HTTPS.

    

### What does an example of Strict-Transport-Security look like?

 

```
Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
```

 

## At a glance

   CategoryHTTP headers Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026

 

## More HTTP headers terms

 

- [Referrer-Policy](<https://delaparra-services.nl/knowledge-hub/referrer-policy>) 
- [Retry-After](<https://delaparra-services.nl/knowledge-hub/retry-after>) 
- [Set-Cookie](<https://delaparra-services.nl/knowledge-hub/set-cookie>) 
- [User-Agent](<https://delaparra-services.nl/knowledge-hub/user-agent>) 
- [Vary](<https://delaparra-services.nl/knowledge-hub/vary>) 
- [WWW-Authenticate](<https://delaparra-services.nl/knowledge-hub/www-authenticate>)

 

[All terms starting with S](<https://delaparra-services.nl/knowledge-hub#letter-s>)

 

## Skills

 

- ### HTTP headers review

 

Use when reviewing or setting HTTP response headers for a web app or API - security headers (Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy), CORS headers, caching headers (Cache-Control, ETag, Last-Modified, Vary) and cookies (Set-Cookie flags). Also use when a security scan reports missing headers.

 [View skill](<https://delaparra-services.nl/skills/http-headers-review>) [Download zip](<https://delaparra-services.nl/skills/http-headers-review/download>) 
- ### Laravel OWASP Security

 

OWASP Top 10 security audit and secure coding guidelines for Laravel + React/Inertia.js applications. Use when auditing for vulnerabilities ("run OWASP audit", "security review", "check my app security") or writing secure Laravel code involving auth, payments, file uploads, or API design. Triggers on security-related tasks, payment handling, authentication, or any request to audit a Laravel codeba

 [View skill](<https://delaparra-services.nl/skills/laravel-owasp-security>) [Download zip](<https://delaparra-services.nl/skills/laravel-owasp-security/download>) 
- ### SAST Configuration

 

Configure Static Application Security Testing (SAST) tools for automated vulnerability detection in application code. Use when setting up security scanning, implementing DevSecOps practices, or automating code vulnerability detection.

 [View skill](<https://delaparra-services.nl/skills/sast-configuration>) [Download zip](<https://delaparra-services.nl/skills/sast-configuration/download>)

 [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/strict-transport-security/skills.zip>)

 

## Manuals

 

- [HTTP headers: security, caching and CORS](<https://delaparra-services.nl/manuals/http-headers-beveiliging-caching-en-cors>)

 

## Related services

 

- [AI code review](<https://delaparra-services.nl/services#service-05>)

When you push your new change, I will review your code, help your agent avoid the same mistake again, and get your app ready for deployment. 
- [Web design and development](<https://delaparra-services.nl/services#service-01>)

After our first meeting, we'll develop a custom solution for a fast, scalable application.

 

## Need any help?

 

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.

  [Get in touch](<https://delaparra-services.nl/availability>)

[HTML version](https://delaparra-services.nl/knowledge-hub/strict-transport-security)
