Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 如何在Amazon中使用ResponseCacheControl URL参数?_Amazon Web Services_Amazon S3_Caching - Fatal编程技术网

Amazon web services 如何在Amazon中使用ResponseCacheControl URL参数?

Amazon web services 如何在Amazon中使用ResponseCacheControl URL参数?,amazon-web-services,amazon-s3,caching,Amazon Web Services,Amazon S3,Caching,根据,有一个名为responseCacheCacheControl的查询参数,可以添加到S3 URL,以便响应包含Cache Control标头,我需要该标头,以便我的浏览器将缓存响应,即我需要它返回 缓存控制:最大年龄=100 然而,臭名昭著的糟糕的AmazonS3文档没有提供任何关于如何使用此参数的信息 是否有人知道,我应该给它什么值才能返回带有所需标题的响应?要使用max age,需要对其进行URL编码 response-cache-control=max-age%3D100 要使用ma

根据,有一个名为
responseCacheCacheControl
的查询参数,可以添加到S3 URL,以便响应包含
Cache Control
标头,我需要该标头,以便我的浏览器将缓存响应,即我需要它返回

缓存控制:最大年龄=100

然而,臭名昭著的糟糕的AmazonS3文档没有提供任何关于如何使用此参数的信息


是否有人知道,我应该给它什么值才能返回带有所需标题的响应?

要使用
max age
,需要对其进行URL编码

response-cache-control=max-age%3D100

要使用
max age
,您需要对其进行URL编码

response-cache-control=max-age%3D100

不幸的是,这不起作用。它导致Amazon出现
403
错误。不幸的是,这不起作用。它导致亚马逊出现
403
错误