Skip to content

Conversation

PiotrCzapla
Copy link

Use the gtm_server_side_is_page_cached filter (provided by the user) to determine whether it’s safe to output dynamic or sensitive data.

As an additional safeguard, we insert an HTML comment '' whenever such data is output. This comment can be used to scan for potential data leaks in cached content.

At a minimum, users can include a check for this comment in their monitoring systems and trigger an alert or failure if it’s detected on a page that should be cached, such as the homepage.

Use the gtm_server_side_is_page_cached filter (provided by the user) to determine whether it’s safe to output dynamic or sensitive data.

As an additional safeguard, we insert an HTML comment '<!-- DO NOT CACHE -->' whenever such data is output. This comment can be used to scan for potential data leaks in cached content.

At a minimum, users can include a check for this comment in their monitoring systems and trigger an alert or failure if it’s detected on a page that should be cached, such as the homepage.
@PiotrCzapla
Copy link
Author

This should partially solve #31

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.

1 participant