Configuring any CDN to deliver only one file no matter what url has been requested

后端 未结 9 1827
日久生厌
日久生厌 2021-02-01 22:29

I am currently working on a new project where the entire page should be implemented in HTML5/JS working against an API/JSON. Since the entire application should only consist of

9条回答
  •  长情又很酷
    2021-02-01 22:31

    We recently contacted edgecast.com (which is a cdn like cloudfront) and through their support they told me that this is indeed something that they can do, but not through their standard interface. I was told to simply contact them when we needed a wildcard route to a single file.

    As for your your question: yes, it's possible. Just contact them through their live chat and they'll help you out, good luck!

    Some more (negative) information: A catch-all-rule like this means the stupid favicon.ico-forced-request some browsers (read IE) do will be caught and the regular html-page will be downloaded again. In fact, all automatic requests (iframes also request a favicon, for example) against the root-domain will be caught and the regular html-file will be downloaded. This may or may not be a problem for you but for me all these hidden requests is making me rethink the solution and using a webserver behind to do the actual catch-all. Shame really.

提交回复
热议问题