Full page reload on Post/Redirect/Get ignoring cache control

前端 未结 3 1855
名媛妹妹
名媛妹妹 2020-12-29 12:28

I have a page that loads a lot of images, css and javascript. I\'ve added a far future Expires header and set Cache-Control to public on these external dependencies so they

3条回答
  •  清酒与你
    2020-12-29 13:07

    The fix: cache-control: no-store

    (You may also want to use status code 307 instead of 302, which will preserve the method.)

    The solution was found—after many days of frustration—in a comment on this open WebKit bug:

    CachedRawResource now keeps the redirect chain, and has some trivial logic for checking correctness, but it's nowhere near complete (only checks cacheControlContainsNoStore()). And of course other resource types don't have anything.

提交回复
热议问题