New

FlowConsent, our own cookie banner, is live.

HTTP headers: plainly explained.

HTTP headers are metadata exchanged between browser and server. Learn what they are, the main types, security headers and best practices.

Website · Updated Nov 7, 2026

DEFINITION

HTTP headers are key-value pairs sent with every request and response that tell browsers and servers how to handle content, caching, security and more.

CATEGORY

Website

RELATED

Content security policy, SSL certificate

Summarize this page with AI

01

What are HTTP headers?

HTTP headers are small pieces of metadata sent along with every HTTP request and response. Each header is a name and a value, for example Content-Type: text/html. They travel before the actual content and tell the receiver how to interpret it, whether to store it, who is allowed to read it and how to secure it.

Visitors never see headers, but they shape the speed, security and search visibility of every page.

02

How HTTP headers work

When a browser requests a page, it sends request headers. The server answers with response headers followed by the body.

GET /pricing HTTP/1.1
Host: www.example.com
Accept-Language: en

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Cache-Control: public, max-age=3600
Strict-Transport-Security: max-age=31536000

You can inspect headers in the Network tab of your browser developer tools or with a command such as curl -I.

03

Main types of HTTP headers

  • Request headers: sent by the browser, such as User-Agent, Accept-Language and Cookie.
  • Response headers: sent by the server, such as Content-Type, Set-Cookie and Location.
  • Caching headers: Cache-Control, ETag and Expires control how long content is stored.
  • Security headers: protect visitors against common attacks.
04

Key headers for security and SEO

HeaderPurpose
Strict-Transport-SecurityForces HTTPS connectionsWhy it mattersPrevents downgrade attacks
Content-Security-PolicyRestricts allowed content sourcesWhy it mattersReduces script injection risk
Cache-ControlDefines caching rulesWhy it mattersImproves load speed
X-Robots-TagGives indexing directivesWhy it mattersControls indexing of non-HTML files
LocationSets the redirect targetWhy it mattersUsed by 301 and 302 redirects
05

Best practices and common mistakes

  • Serve every page over HTTPS and add Strict-Transport-Security once you are sure it works.
  • Set long cache lifetimes for static assets and short ones for HTML.
  • Return the right status code and Content-Type, since wrong values can prevent indexing or break rendering.
  • Avoid leaking server details in headers such as Server or X-Powered-By.
  • Test changes on a staging environment: a strict security header can block your own scripts.
06

HTTP headers at BeBranded

Headers sit at the boundary between performance, security and SEO. Through our website services, we configure caching, redirects and security headers at the hosting or CDN level, and we verify them with each launch so that pages are fast, safe and correctly indexed.

FAQ

Questions about HTTP headers.

Another question?

Write to us
What are HTTP headers?
HTTP headers are name-value pairs sent with every request and response. They describe the content and tell browsers and servers how to handle it.
How can I see the HTTP headers of a page?
Open your browser developer tools, go to the Network tab and select a request. You can also run curl -I followed by the URL in a terminal.
What is the difference between request and response headers?
Request headers are sent by the browser to describe what it wants, while response headers are sent by the server to describe what it returns.
Which HTTP headers matter most for security?
Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options and Referrer-Policy are the most common baseline security headers.
Do HTTP headers affect SEO?
Yes. Status codes, redirects, caching and X-Robots-Tag directives all influence how search engines crawl and index your pages.
How do I add custom HTTP headers?
Add them in your web server configuration, at your CDN such as Cloudflare, or in your hosting settings, depending on where your site is served.

Related

Related terms, and where to go next.

BeBranded
Conversion

CRO: definition, method and how to apply it on Webflow

What is CRO? Definition, conversion rate formula, 4-step method, KPIs to track, and practical application on Webflow. Complete guide for SMBs, SaaS & e-commerce

Read the article
BeBranded
Development

Website maintenance: pricing, types and how to choose (2026)

Website maintenance: discover the 3 types of maintenance, real pricing by scope, red flags to watch for, and how to choose the right plan for your business.

Read the article
Webflow pricing 2026: plans, costs & what you'll really pay
Webflow

Webflow pricing 2026: plans, costs & what you'll really pay

How much does Webflow cost in 2026? Site plans, Workspace plans, add-ons, hidden costs & 3 budget scenarios. Complete guide to choosing the right plan.

Read the article

Let’s talk

Tell us what you want to build.

Thirty minutes with the people who will work on your project. You leave with a clear view of the scope, the timeline and the next steps.

What happens next

  1. 1A 30-minute callWe listen to your goals, your constraints and your context.
  2. 2A clear scopeWe map what is worth doing first, and what it takes.
  3. 3A costed proposalYou decide, with no commitment and no sales pitch.