S3 CORS, always send Vary: Origin

前端 未结 2 1615
情话喂你
情话喂你 2020-12-13 16:14

I am using an S3 bucket behind Cloudfront with CORS enabled. If the client makes a request with the Origin header, then S3 (and cloudfront) respond with a \"Vary: Origin\" h

2条回答
  •  伪装坚强ぢ
    2020-12-13 16:50

    I made an account just to answer your question, because there are very few good answers around for this kind of problem (and a few related ones).

    The problem you describe happens for some reason primarily in chrome, FF and IE seems to be smart enough not to share cache between AJAX and regular calls in these instances.

    The Problem

    Lets first describe why the problem happens for future readers:

    • Browser (Chrome) ask the server using a regular or
提交回复
热议问题