Skip to content

Support cache invalidation #62

Description

@HanadaLee

Currently, this module's purge method deletes cached files.
However, in CDNs or other specific scenarios, it's often only necessary to invalidate the cache (set it to expire) rather than directly deleting it to reduce unnecessary upstream transmissions. Invalidated caches can be re-validated upstream (304).

Function Description:

Introducing the directive:

*_cache_purge_type delete | invalidate;

It is recommended that the value of the directive include variables, so that control can be passed in via request headers, etc.

*_cache_purge_type $http_purge_type;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions