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

Append etag in preview URLs #369

Closed
PVince81 opened this issue Aug 20, 2015 · 6 comments
Closed

Append etag in preview URLs #369

PVince81 opened this issue Aug 20, 2015 · 6 comments

Comments

@PVince81
Copy link
Contributor

I got a case where the URL returned by the activity app was showing the wrong cached preview from an older version of the file.

Ideal would be to either append a random string "c=1a2b3c4d5" in the URL or the etag.

@nickvergessen
Copy link
Contributor

No, that's abuse against caching. If the valid preview URL returns a wrong image, that is something core has to deal with!

@PVince81
Copy link
Contributor Author

Using the etag isn't abuse. We do that in the files app too.
So as long as the file is the same as before, it will use the cached image from the browser as it has the same etag.
If the etag changes, a new preview is requested.

@PVince81
Copy link
Contributor Author

(a random string is abuse, yes)

@nickvergessen
Copy link
Contributor

Well, currently we don't have the etag. Maybe as part of chaning previews to file id way

@PVince81
Copy link
Contributor Author

Isn't the preview URL bundled in a field ? You could just append the etag there.

@nickvergessen
Copy link
Contributor

No it is currently generated from the file path. But that means when it is moved we don't have previews anymore, so changing that is maybe a good idea anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants