Jersey: Default Cache Control to no-cache

前端 未结 5 2265
孤独总比滥情好
孤独总比滥情好 2020-12-25 13:35

While writing a RESTful web service, I am encountering issues if I enable any sort of caching on my client (currently a .NET thick client). By default Jersey is not sending

5条回答
  •  死守一世寂寞
    2020-12-25 14:07

    I found one annotation which can disable caching. You can use following annotation for your API:

    @CacheControl(noCache = true)
    

    Ref: Jersey Annotation for cache control

提交回复
热议问题