electric-sql / electric-sql/phoenix_sync

Document decision to not send cache headers by default in development

Open
#55 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elixir
Stars
290
Forks
17
PR merge metrics
No merged PRs in 30d

Description

I noticed when using Phoenix.Sync locally that the browser wasn't caching requests as I hoped. After digging into the code I discovered that I need to configure `send_cache_headers?: true`. This worked nicely, but it would be helpful to document this (along with trade-offs and why I might not want to do this).

https://github.com/electric-sql/phoenix_sync/blob/405710ec71807563d080b4994c2284fe40f5315c/lib/phoenix/sync/electric.ex#L386-L394

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.