Skip to content

Best Method to prevent GET caching? #416

@JamoCA

Description

@JamoCA

What's the best way to prevent caching of a GET response to a single URI?

I tried adding taffy_cache="false" to the component, but it didn't seem to make any difference.

My approach was to generate Pragma, Cache-Control, Last-Modified and Expires headers and return them using the withHeaders() method and, while it works, I thought there might be something else available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions