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

Presign url at given time #1013

Closed
hakunin opened this issue Nov 23, 2015 · 3 comments
Closed

Presign url at given time #1013

hakunin opened this issue Nov 23, 2015 · 3 comments
Assignees
Labels
feature-request A feature should be added or improved.

Comments

@hakunin
Copy link

hakunin commented Nov 23, 2015

Hi, I am generating pre-signed urls so users can have access to S3 imagines for a limited time (say two days).

But, since the urls change (each is generated now), they are unique and I am not able to use browser cache.

So I need to be able to say that I want the url signed at a given time. I tried hacking it into the gem, but then the param is rejected by the validator :)

@awood45 awood45 added feature-request A feature should be added or improved. Version 2 labels Nov 23, 2015
@awood45 awood45 self-assigned this Nov 23, 2015
@awood45
Copy link
Member

awood45 commented Nov 23, 2015

That's an interesting feature request. I'll add it to the feature request backlog, and would look at a pull request for this if you want to take a swing at it.

@awood45
Copy link
Member

awood45 commented Nov 23, 2015

I've added the feature request, though as an alternative to consider, you could also save these URLs somewhere for reuse. Depends on what your use case is, exactly.

@awood45 awood45 closed this as completed Nov 23, 2015
@hakunin
Copy link
Author

hakunin commented Nov 24, 2015

Saving them would be awkward, since you have to watch them and re-generate them when old.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

2 participants