Skip to content

Obsolete "Pragma" HTTP header #944

@hannob

Description

@hannob

There are a couple of places in the code that set the "Pragma:" http header:

index.php
plugins/serendipity_event_gravatar/serendipity_event_gravatar.php
serendipity.css.php

According to MDN and current HTTP caching specs (RFC 9111), it is obsolete and discouraged:
https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Pragma
https://httpwg.org/specs/rfc9111.html#field.pragma

It looks like it was only part of HTTP/1.0 and got replaced by Cache-Control a loooong time ago. I believe we can simply remove that and it'll have no consequences.

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