-2

I am java developer. I need to know how to set expiration time for caching.

Any help is appreciated.

Is there any best way to do this?

4

1 回答 1

0

以下是在客户端执行此操作的方法: RESPONSE.setHeader('Cache-Control', 'max-age=86400, s-maxage=86400, public, must-revalidate, proxy-revalidate')

这是更多信息和示例: 来源和示例:

于 2013-02-13T20:58:05.410 回答