Skip to content

response_hit_indication header value is true when "found" is false #595

Open
@sumandari

Description

@sumandari

hit_cache doesn't reflect the found value

When the key expires, the found value will be False, but apply_caching method after always give 'True' when invoked in after_request_funcs

def apply_caching(response):

'hit_cache': 'True'

expectation:
when found is False, the header will be false in after_request invocation

Environment:

  • Python version: 3.11
  • Flask-Caching version: 2.3.0

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