Skip to content

Serving static files with Amazon S3 and signed querystring problem #384

@jcarizza

Description

@jcarizza

Python version
3.10

Django version
4.0

Package version
0.28.6

Current behavior (bug description)
If you are serving statics file with S3 getting the Amazon S3 URL, appending version_md5_cache no cache hack, ends with an invalid querystring signature.

https://somebucket.s3.amazonaws.com/static/admin_interface/css/admin-interface.css?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIASZCKPMCH252IY5DQ%2F20240425%2Fus-east-2%2Fs3%2Faws4_request&X-Amz-Date=20240425T165301Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=bad070cc958c1a012b5b6a4f7ccc36e35b2f81d2f2da6e92f5939d3bd64b472d?v=c1548e38e71188608118f130f7944a2ee1f32032ee3065d7e61c8ef4

Expected behavior
Templates should print the static file URl without the ?v={{ version_md5_cache }}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions