Skip to content

QR code is not working correctly #3819

Answered by dgw
Micheal3030 asked this question in Q&A
Oct 14, 2024 · 2 comments · 9 replies
Discussion options

You must be logged in to vote

My own testing indicates that browsers will still cache 302s for some period of time without being explicitly told not to. HTTP headers can influence how long it takes; by default, on my YOURLS instance, I see a max-age of 600 seconds.

YOURLS includes a function that it uses to send headers disable caching on some pages, mostly in the admin area. I created a simple plugin that calls it also for shorturl redirections: https://github.com/dgw/yourls-shorturl-no-cache

In further testing, I no longer see "(from disk cache)" in Dev Tools' Network pane when accessing recently-used shorturls on my instance, and editing the long URL now takes effect immediately. I've proposed adding the plugin to …

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
1 reply
@dgw
Comment options

dgw Oct 14, 2024
Maintainer

Comment options

You must be logged in to vote
8 replies
@dgw
Comment options

dgw Oct 14, 2024
Maintainer

@Micheal3030
Comment options

@Micheal3030
Comment options

@dgw
Comment options

dgw Oct 15, 2024
Maintainer

Answer selected by Micheal3030
@Micheal3030
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants