Caching Public and Personal Representations
HTTP responses can have different cache rules according to whether the selected representation may be reused across users or requests.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 4
- Reading time
- 1 min
In this article4 chapters
Trace two page types
A published handbook page may be reusable by many readers. An account settings view contains user-specific state and requires a deliberate cache policy. Response cache matching identifies which requests may reuse results.
Test with separate sessions
Check the documented cache directives and whether the supported workflow consistently returns each user's own result. Session data explains one source of personalization.[1]
Determine whether two readers may receive the same stored bytes
A public catalogue page may have a representation suitable for shared caching. A view showing a reader's saved items requires a policy that prevents reuse across people. Mark responses according to their storage and reuse requirements. See HTTP response caching.
Public item view → may be eligible for shared reuse
Account list → personalized representation
Test separate independent clients with different saved items
Account for freshness and variation independently
Public responses can still vary by language or format request. Personalized data can also be sensitive enough to prohibit storage under the relevant policy. Use response directives and verify the actual cache behavior.