考虑到max-age适用于所有缓存,而s-maxage仅适用于共享缓存(代理和网关缓存)....
在非可过期和公共页面中使用这两个指令是否有意义?
控制器伪代码:
w = Response(); w.setPublic(); w.setMaxAge("1 year"); w.setShareMaxAge("1 year"); return w;
caching http http-headers
caching ×1
http ×1
http-headers ×1