Problem/Motivation
Haven't check this very closely yet, but it looks like a site with dynamic page cache always returns the same data, the site has dynamic page cache enabled.
Proposed resolution
Figure out why, add necessary cacheabilty metadata, for example with a max-age. Start by extending the tests to make a change and then check a resource again. Write a log entry, for example.
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | prevent_caching_of-2834724-2.patch | 3.43 KB | drobnjak |
| #5 | prevent_caching_of-2834724-2-test-only.patch | 1.84 KB | drobnjak |
| #2 | prevent_caching_of-2834724-2.patch | 3.43 KB | drobnjak |
Comments
Comment #2
drobnjak commentedSetting the max-age to 0 since max-age = 0 responses are ignored by Dynamic Page Cache. Providing test coverage.
Comment #3
berdirCan I haz a test-only patch?
Comment #4
berdirComment #5
drobnjak commentedProviding test-only patch
Comment #7
berdirThanks.