Open edwinveldhuizen opened 6 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 99.26%. Comparing base (
f0ba5ad
) to head (dc0443b
). Report is 12 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I'm not sure if a typeof window === 'undefined'
check is the correct one in this case. It also works on native apps? What about personal nodejs projects? There are infinite use cases here that aren't covered just by checking if windows
is defined.
I'm not sure if a
typeof window === 'undefined'
check is the correct one in this case. It also works on native apps? What about personal nodejs projects? There are infinite use cases here that aren't covered just by checking ifwindows
is defined.
Good point about apps! What would you suggest as an alternative? A config option called “allowPrivate”?
Good point about apps! What would you suggest as an alternative? A config option called “allowPrivate”?
Seems fine! Default it to false to keep the previous behavior and add it do our docs.
Hi @edwinveldhuizen just quick follow up here, do you still need this feature?
When a server returns
private
in the cache-control header, you do not want to cache it unless on a private device like a browser.