Skip to content

cache-control: private is playing havoc with performance #47

@simonw

Description

@simonw

In #6 we disabled all caching for logged in users.

# Rebuild headers to include cache-control: private
original_headers = event.get("headers") or []
new_headers = [
[key, value]
for key, value in original_headers
if key.lower() != b"cache-control"
]
new_headers.append([b"cache-control", b"private"])

It turns out this is causing really nasty performance issues when running with other plugins such as datasette-vega! See simonw/datasette#586

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions