我可以在OpenAPI中执行查询参数顺序吗?
原因是 CDN 缓存条目。这些是用作缓存键的特定字符串,为了使它们无效,它们需要匹配。最好,我想强制执行查询参数顺序,以便它们始终与 CDN 缓存键匹配。
The reason is for CDN cache entries. Those are specific strings used as cache keys and to invalidate them they need to match. Preferably, I'd like to enforce the query param order so that they always will match the CDN cache keys.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方案是在构建查询字符串时仅执行排序。
The solution is to just enforce ordering when building the query string.