{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":309747605,"defaultBranch":"main","name":"craft-transform","ownerLogin":"fork","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2020-11-03T16:40:10.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/33594?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1680517264.0","currentOid":""},"activityList":{"items":[{"before":"73acdb5e57531adcd5d46ea64beba55396500912","after":null,"ref":"refs/heads/feature/ignore-cache-in-preview","pushedAt":"2023-04-03T10:21:00.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"barnslig","name":"Leonard","path":"/barnslig","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/734101?s=80&v=4"}},{"before":"fd62bdde3464106041c81109391c92adcf8fd104","after":"1db3226997ba401908dbc53ed6a1f40012da59d1","ref":"refs/heads/main","pushedAt":"2023-04-03T10:20:55.000Z","pushType":"push","commitsCount":3,"pusher":{"login":"barnslig","name":"Leonard","path":"/barnslig","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/734101?s=80&v=4"},"commit":{"message":"Merge branch 'release/2.1.1'","shortMessageHtmlLink":"Merge branch 'release/2.1.1'"}},{"before":"c05d23ba759a1f6464512c109376ab0ad83864fb","after":"63489005e839621843103a3dff9de0092a2bf869","ref":"refs/heads/develop","pushedAt":"2023-04-03T10:20:55.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"barnslig","name":"Leonard","path":"/barnslig","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/734101?s=80&v=4"},"commit":{"message":"Merge branch 'release/2.1.1' into develop","shortMessageHtmlLink":"Merge branch 'release/2.1.1' into develop"}},{"before":null,"after":"73acdb5e57531adcd5d46ea64beba55396500912","ref":"refs/heads/feature/ignore-cache-in-preview","pushedAt":"2023-04-03T10:20:55.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"barnslig","name":"Leonard","path":"/barnslig","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/734101?s=80&v=4"},"commit":{"message":"fix: Ignore cache when in CMS preview\n\nCraft CMS automatically appends the preview ?token= query param to\nall element URLs. This could result in the cache being poisoned by\npreview URLs.\n\nSteps to reproduce:\n- Have a transformer that provides getCacheKey and retrieves an\n element URL\n- Ensure that the cache is empty, e.g. run ./craft clear-caches/all\n- Open a preview in the CMS that triggers the transformer\n- Open the page without preview token in an incognito tab\n- The URL retrieved by the transformer now has an unexpected preview\n token\n\nPreview tokens should NOT be cached as they disable page caching and\nmay expose content to public visitors that they should not have seen.\n\nThis commit adapts the behavior of the {% cache %} twig tag:\n\nhttps://github.com/craftcms/cms/blob/c21a32ea8f9f3ded626e07c36c85ab0da2379b22/src/web/twig/nodes/CacheNode.php#L48","shortMessageHtmlLink":"fix: Ignore cache when in CMS preview"}},{"before":"73acdb5e57531adcd5d46ea64beba55396500912","after":null,"ref":"refs/heads/feature/ignore-cache-in-preview","pushedAt":"2023-04-03T10:15:19.000Z","pushType":"branch_deletion","commitsCount":0,"pusher":{"login":"barnslig","name":"Leonard","path":"/barnslig","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/734101?s=80&v=4"}},{"before":"bf91f144adf4bc08e9e251723a5ef8bd4ba3b38e","after":"fd62bdde3464106041c81109391c92adcf8fd104","ref":"refs/heads/main","pushedAt":"2023-04-03T10:14:58.000Z","pushType":"push","commitsCount":5,"pusher":{"login":"barnslig","name":"Leonard","path":"/barnslig","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/734101?s=80&v=4"},"commit":{"message":"Merge branch 'release/2.1.0'","shortMessageHtmlLink":"Merge branch 'release/2.1.0'"}},{"before":"20a7ac18e4f9d412a04c141998afa2f3bcbd1e36","after":"c05d23ba759a1f6464512c109376ab0ad83864fb","ref":"refs/heads/develop","pushedAt":"2023-04-03T10:14:54.000Z","pushType":"push","commitsCount":2,"pusher":{"login":"barnslig","name":"Leonard","path":"/barnslig","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/734101?s=80&v=4"},"commit":{"message":"Merge branch 'release/2.1.0' into develop","shortMessageHtmlLink":"Merge branch 'release/2.1.0' into develop"}},{"before":"8d335ab22c84026d513966a1a3688407b63a8207","after":"20a7ac18e4f9d412a04c141998afa2f3bcbd1e36","ref":"refs/heads/develop","pushedAt":"2023-04-03T10:09:44.000Z","pushType":"pr_merge","commitsCount":2,"pusher":{"login":"barnslig","name":"Leonard","path":"/barnslig","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/734101?s=80&v=4"},"commit":{"message":"Merge pull request #4 from fork/feature/ignore-cache-in-preview\n\nfix: Ignore cache when in CMS preview","shortMessageHtmlLink":"Merge pull request #4 from fork/feature/ignore-cache-in-preview"}},{"before":null,"after":"73acdb5e57531adcd5d46ea64beba55396500912","ref":"refs/heads/feature/ignore-cache-in-preview","pushedAt":"2023-04-03T09:49:52.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"barnslig","name":"Leonard","path":"/barnslig","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/734101?s=80&v=4"},"commit":{"message":"fix: Ignore cache when in CMS preview\n\nCraft CMS automatically appends the preview ?token= query param to\nall element URLs. This could result in the cache being poisoned by\npreview URLs.\n\nSteps to reproduce:\n- Have a transformer that provides getCacheKey and retrieves an\n element URL\n- Ensure that the cache is empty, e.g. run ./craft clear-caches/all\n- Open a preview in the CMS that triggers the transformer\n- Open the page without preview token in an incognito tab\n- The URL retrieved by the transformer now has an unexpected preview\n token\n\nPreview tokens should NOT be cached as they disable page caching and\nmay expose content to public visitors that they should not have seen.\n\nThis commit adapts the behavior of the {% cache %} twig tag:\n\nhttps://github.com/craftcms/cms/blob/c21a32ea8f9f3ded626e07c36c85ab0da2379b22/src/web/twig/nodes/CacheNode.php#L48","shortMessageHtmlLink":"fix: Ignore cache when in CMS preview"}}],"hasNextPage":false,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAADEOQnCAA","startCursor":null,"endCursor":null}},"title":"Activity ยท fork/craft-transform"}