amazon-cloudfront - AWS CloudFront - bypass cache depending on the presence of a certain header or cookie?
问题描述
I wonder if it is possible to bypass the cache and hit the origin when a certain header or cookie exists in the requests? If yes, could you tell me the direction how to implement it, please?
解决方案
我能想到的唯一方法是使用lambda edge。在查看器请求上添加 lambda 函数以检查特定标头或 cookie,然后添加Cache-Control: no-store
.
推荐阅读
- php - 创建多租户 / Saas 并在为用户设计数据库时遇到问题
- scala - 在 Gatling 中将多个检查作为变量参数传递
- visual-studio - 如何从 Visual Studio 2019 标题栏中删除“登录”控件?
- android - 如何从 recyclerview 和 sqlite 中删除项目?
- python - Windows-Pyinstaller 错误“无法执行脚本”当应用程序单击时
- php - 如何修复“Apache2 Debian 默认页面”而不是我的网站
- java - 单击步骤指示器上的功能
- matlab - 如何用 mvnpdf 向量化 Matlab 代码?
- arrays - 使用两个数组创建注册表键/值
- php - errno:150“外键约束格式不正确”但检查我所知道的一切