Therefore, there is a need to tell a cache how long a rendered view of page remains valid.
因此需要告知缓存已呈现的页面视图保留的有效时间。
How you set remote cache information depends on the "freshness" requirements and the scope of the rendered view.
设置远程缓存信息的方式依赖于呈现的视图的“刷新”要求和范围。
First we will use a Servlet 2.3 Filter to apply an ETag generated using an MD5 checksum of the rendered view (a "shallow" ETag implementation).
首先我们将使用Servlet 2.3 Filter,利用展现视图(rendered view)的MD 5校验和(checksum)以实现生成ETag的方法(一个“浅显的”ETag实现)。
应用推荐