Dillo caches temporary redirects as if they were permanent ones. It looks like someone tried to fix that at some point, judging by these 2 lines in src/cache.c, in Cache_redirect(): if (entry->Flags & CA_TempRedirect) a_Url_set_flags(NewUrl, URL_FLAGS(NewUrl) | URL_E2EQuery); This causes the target page to be reloaded, but not the redirect itself. It also means that if you open the same redirect in multiple tabs, all loading simultaneously, only the last one properly loads. My patch adds actual support for temporary redirects and removes those pointless lines: diff --git a/src/cache.c b/src/cache.c index a6c1f7b4..257e0c7f 100644 --- a/src/cache.c +++ b/src/cache.c @@ -1032,6 +1032,8 @@ static void Cache_finish_msg(CacheEntry_t *entry) if (entry->Flags & CA_GotHeader) { Cache_unref_data(entry); } + if (entry->Flags & CA_TempRedirect) + Cache_entry_remove(entry, NULL); } } @@ -1174,8 +1176,6 @@ static int Cache_redirect(CacheEntry_t *entry, int Flags, BrowserWindow *bw) if (Flags & WEB_RootUrl) { /* Redirection of the main page */ NewUrl = a_Url_new(URL_STR_(entry->Location), URL_STR_(entry->Url)); - if (entry->Flags & CA_TempRedirect) - a_Url_set_flags(NewUrl, URL_FLAGS(NewUrl) | URL_E2EQuery); a_Nav_push(bw, NewUrl, entry->Url); a_Url_free(NewUrl); } else {
participants (1)
-
256@256-32.com