s h _ w h e n @ p o s t , p u b l i c : t r u e # t h i s w i l l u s e a n M D 5 o f @ p o s t . c a c h e _ k e y e n d d e f s h o w f r e s h _ w h e n e t a g : " m y _ c u s t o m _ t a g " e n d
s h _ w h e n @ p o s t , p u b l i c : t r u e # t h i s w i l l u s e @ p o s t . u p d a t e d _ a t e n d d e f s h o w f r e s h _ w h e n l a s t _ m o d i f i e d : [ @ p o s t . u p d a t e d _ a t , @ p o s t . v e r i f i e d _ a t ] . m a x e n d
i f s t a l e ? ( l a s t _ m o d i f i e d : @ p o s t . p u b l i s h e d _ a t ) # s t a l e ? ( @ p o s t ) # T h i s b l o c k w i l l o n l y b e e x e c u t e d i f t h e r e q u e s t i s n o t f r e s h @ p o s t . s u p e r _ l o n g _ c a l l r e s p o n d _ w i t h @ p o s t e n d e n d
Etag: "5257d1fa-2a33" max-age + ETag Jennifer GET /posts < 3600 max-age=3500 + Etag: "5257d1fa-2a33" GET /posts GET /posts + ETag From cache + max-age + ETag 304 Not Modified