Skip to content

Preloading uncached redirects #865

Answered by daun
PietM asked this question in Help
Jan 24, 2024 · 6 comments · 1 reply
Discussion options

You must be logged in to vote

This might have to do with redirects, which are no longer cached in swup 4. The links in your examples point to urls without trailing slash, like /page1, which then redirect to the actual urls with trailing slash, like /page1/. We have implemented some logic to not cache redirected requests – ideally we could only ignore temporary 302 redirects but there's no way to tell so we need to ignore permanent 301 redirects as well. Can you try and see if using the "correct" urls with trailing slashes helps here? We might look into enabling redirect caching for preload requests, or into rewriting the cache url to cache the final url after the redirect.

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by PietM
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

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