Skip to content

Add Recommended Response Headers #2

@dawsonc623

Description

@dawsonc623

These response header fields are recommended by Mark Nottingham on an SO question:

It depends on the specifics of the response, but generally, a response from an origin server should have:

  • Date
  • Content-Type
  • Server

and either Content-Length, Transfer-Encoding or Connection: close.

If you want to do caching, add Cache-Control (e.g., with max-age); Expires isn't generally necessary any more. If you want clients to be able to validate, add Last-Modified or ETag.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions