Rails - etags vs. page caching (file cache)

前端 未结 3 577
长发绾君心
长发绾君心 2021-02-06 03:06

What would be some advantages of using etags/stale?/fresh_when? instead of page caching (on a file cache)?

Apache automatically handles etags for static files, but even

3条回答
  •  隐瞒了意图╮
    2021-02-06 04:05

    One thing that comes to mind is that fresh_when will still save you some rendering even if you cleared the entire page cache. Here you'd be using both in tandem.

    I'm curious about other answers as well.

提交回复
热议问题