Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add-no-store-instruction-header: Add no store instruction for cache header #49

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

papey
Copy link
Member

@papey papey commented Jan 30, 2025

Context

We don't want any cache mechanism on requests that contains sensitive data

Changes

Added cache header instruction no-store, see related MDN documentation

@papey papey self-assigned this Jan 30, 2025
@papey papey requested a review from gcxRun as a code owner January 30, 2025 15:24
@papey papey changed the title replace-cache-header-instruction-with-no-store: Change cache header instruction add-no-store-instruction-header: Add no store instruction for cache header Feb 3, 2025
@papey papey force-pushed the replace-cache-header-instruction-with-no-store branch from 2d3d99f to 19db94c Compare February 3, 2025 15:25
@@ -34,7 +34,7 @@ defmodule Neurow.IntegrationTest.MessageBrokeringTest do

assert_headers(headers, [
{"access-control-allow-origin", "*"},
{"cache-control", "no-cache"},
{"cache-control", "no-cache, no-store"},
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall we do exactly as siiloSSE?

Suggested change
{"cache-control", "no-cache, no-store"},
{"cache-control", "no-cache, no-store, max-age=0, must-revalidate"},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants