Skip to content

Cache-Control header is not set in response. #87

@namtx

Description

@namtx

As the title, I don't see any cache instruction headers like Cache-Control: in the API response.
my current configuration:

"rest-cache": {
    config: {
      provider: {
        name: "memory",
        options: {
          max: 32767,
          maxAge: 3600,
        },
      },
      strategy: {
        maxAge: 3600000,
        contentTypes: [
          // list of Content-Types UID to cache
          "api::category.category",
          "api::printer.printer",
          "api::supporter.supporter",
          "api::seller.seller",
        ],
        enableEtag: true,
        hitpass() {
          return false;
        },
      },
    },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    version: Strapi 4Issues related to the versions supported by Strapi 4

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions