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

Closed
jcarizza opened this issue Apr 25, 2024 · 1 comment
Closed
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
@fabiocaccamo
Copy link
Owner

@jcarizza fixed in 0.29.0, any feedback is appreciated.

@github-project-automation github-project-automation bot moved this from Todo to Done in Open Source Oct 17, 2024
@merwok merwok mentioned this issue Jan 10, 2025
3 tasks
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
Archived in project
Development

No branches or pull requests

2 participants