Search code examples
urlamazon-s3botoceph

A too long link life for S3 object Boto3


After i've generated link on s3 object with boto3, it is living to long... Too many then it's writen.

        url = client.generate_presigned_url(
            ClientMethod='get_object',
            Params={
                'Bucket': bucket_id,
                'Key': key
            },
            ExpiresIn=linc_exp_time
        )

What i'm doing wrong?


Solution

  • Your browser might be caching the results. You can test it in a different browser, or by using wget or curl to download rather than using a browser. -- John Rotenstein