django-admin-interface icon indicating copy to clipboard operation
django-admin-interface copied to clipboard

Serving static files with Amazon S3 and signed querystring problem

Open jcarizza opened this issue 1 year ago • 0 comments

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 }}

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

jcarizza avatar Apr 25 '24 17:04 jcarizza