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

Use etag as cache buster #1709

Merged
merged 1 commit into from
Jun 27, 2023
Merged

Conversation

artonge
Copy link
Contributor

@artonge artonge commented Jun 7, 2023

Follow up of #1554 to cover more usecases.

I reverted #1554 and added the etag to the preview URL to prevent cache mismatch.

One thing is that I am doing a new PROPFIND request. I am wondering if we should do it where the event is emitted instead of where it is received, because listeners will probably always need some form of updated information.

x Before editing After editing in editor After closing the editor After going to the second next picture and back After closing then reopening the viewer
Before Screenshot from 2023-06-07 18-34-22 Screenshot from 2023-06-07 18-34-07 Screenshot from 2023-06-07 18-34-12 Screenshot from 2023-06-07 18-34-18 Screenshot from 2023-06-07 18-32-03
After Screenshot from 2023-06-07 18-34-22 Screenshot from 2023-06-07 18-31-20 Screenshot from 2023-06-07 18-31-24 Screenshot from 2023-06-07 18-31-28 Screenshot from 2023-06-07 18-31-32

@artonge artonge self-assigned this Jun 7, 2023
@artonge artonge added enhancement New feature or request javascript Javascript related ticket 3. to review Waiting for reviews labels Jun 7, 2023
@artonge artonge added this to the Nextcloud 28 milestone Jun 7, 2023
@artonge artonge force-pushed the artonge/feat/use_etag_as_cache_buster branch from 55d9e0b to 2ebb46f Compare June 7, 2023 17:48
@artonge artonge marked this pull request as draft June 7, 2023 20:14
@artonge artonge force-pushed the artonge/feat/use_etag_as_cache_buster branch from 2ebb46f to 2f5d64b Compare June 8, 2023 07:58
@artonge artonge requested a review from skjnldsv June 8, 2023 07:59
@artonge artonge marked this pull request as ready for review June 8, 2023 07:59
@artonge
Copy link
Contributor Author

artonge commented Jun 8, 2023

/backport to stable27

@artonge
Copy link
Contributor Author

artonge commented Jun 8, 2023

/backport to stable26

@backportbot-nextcloud backportbot-nextcloud bot added the backport-request Pending backport by the backport-bot label Jun 8, 2023
@artonge
Copy link
Contributor Author

artonge commented Jun 8, 2023

/backport to stable25

@artonge artonge requested review from a team, Pytal and szaimen and removed request for a team June 8, 2023 08:04
Copy link
Contributor

@szaimen szaimen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM from the screenshots :)

src/views/Viewer.vue Outdated Show resolved Hide resolved
@artonge artonge force-pushed the artonge/feat/use_etag_as_cache_buster branch 4 times, most recently from 4dbe731 to 64ce3fa Compare June 15, 2023 13:04
@artonge artonge requested a review from skjnldsv June 15, 2023 14:26
@artonge
Copy link
Contributor Author

artonge commented Jun 20, 2023

@skjnldsv if you have the time to review this 🙏

Signed-off-by: Louis Chemineau <louis@chmn.me>
@artonge artonge force-pushed the artonge/feat/use_etag_as_cache_buster branch from f4ed250 to 3d36a9c Compare June 27, 2023 16:18
@artonge artonge requested review from susnux and skjnldsv June 27, 2023 16:36
@skjnldsv skjnldsv merged commit d03b1a1 into master Jun 27, 2023
27 checks passed
@skjnldsv skjnldsv deleted the artonge/feat/use_etag_as_cache_buster branch June 27, 2023 17:55
@backportbot-nextcloud

This comment was marked as resolved.

@backportbot-nextcloud

This comment was marked as resolved.

@backportbot-nextcloud

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews backport-request Pending backport by the backport-bot enhancement New feature or request javascript Javascript related ticket
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants