Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jcarizza opened this issue Apr 25, 2024 · 0 comments
Open

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

jcarizza opened this issue Apr 25, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@jcarizza
Copy link

jcarizza commented Apr 25, 2024

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 jcarizza added the bug Something isn't working label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

2 participants