Active
Project:
Boost
Version:
7.x-1.x-dev
Component:
Caching logic
Priority:
Normal
Category:
Bug report
Reporter:
Created:
16 Jan 2013 at 23:00 UTC
Updated:
18 Jun 2013 at 19:37 UTC
Jump to comment: Most recent
I have two nodes, node/241 with a URL alias of "solutions", and node/45 with a URL alias of "hybrid"
In node/45/edit I have added a URL redirect from node/241, so that "/solutions" gets redirected to "/hybrid"
The problem is, boost caches "/solutions" as a completely blank page, and /solutions shows just a blank page and does not redirect.
Adding the URL to Boost's list of excluded URL's does solve this issue, but redirected URL's should be excluded automatically.
Comments
Comment #1
Anonymous (not verified) commentedLook in the latest version of boost under the related modules tab, and there is global redirect, that may solve the problem.This probably warrants further investigation as that should redirect before meeting boost.
Comment #2
Anonymous (not verified) commentedSame here.
On the
admin/config/search/redirect/settingsRedirect settings page there is an option that seems to be related:But of course "Cache pages for anonymous users" is not enabled, as per Boost requirements.
Comment #3
Anonymous (not verified) commentedPlease give me an example page, but Redirect 7.x-1.0-rc1 is not on our module list (terrible memory, I wrote out the list).
Comment #4
Anonymous (not verified) commentedThanks for your reply. I forgot to mention that I also use Domain Access. :)
Alas, I can't give you an example page because there is no public test site and pages on the live site can't be redirected as long as the redirect is not working.
The first time I access the redirected page as an anonymous user, the redirect works and I end up on the target page as expected. The second time I remain on the source URL, and get a blank page, with only one line, the Boost signature in the HTML source:
FYI, these are the request and response headers:
Comment #5
Anonymous (not verified) commentedThis is very expected. The first time you visit a page then you see it because your browser was redirected, but in the background Boost has cached the redirect so that you get nothing the second time because it outputs what it did when you where redirected but as an html page, not with the headers.
Basically why the redirect ? can you not use url aliases instead ? possibly boost should be checking the redirect status sent out but technically it may not be possible with the redirect module.
Philip.
Comment #6
Anonymous (not verified) commentedThe site is sort of a Yellow Pages directory, and oftentimes companies move, change name, users upload wrong data that gets into the URL via Pathauto patterns, etc. And in those cases we don't want to simply give a 404 on the old URL as it hurts our SEO, but to redirect to the new URL.
For example, on this page we list doctors offices in a district clinic, and for SEO considerations the doctor's name is part of the URL. But doctors come and go all the time. When the consulting room is taken over by a new doc, along with all the patients, we want to change the title, and the URL, without loosing the incoming traffic from search engines or the bookmarks in patients' browsers.
Comment #7
robloachThis occurs on 7.x-1.x-dev as well.
Comment #8
Anonymous (not verified) commentedWhy would you wish to do that when you could do another URL alias, why the need for the middle page. Redirects are not good with boost, boost works as designed as it caches the output, but in the case of a redirect the output is no html. You could use the boost options to ignore that specific node if you really needed an intermediate page.
Comment #9
derekw commentedWas having the same problem, and applied #3 patch from here: https://drupal.org/node/1176534#comment-4571358
and the redirect/blank page problem went away.
(#2 patch is already in Dev but wasn't helping me.)
Comment #10
Anonymous (not verified) commentedThank you for the information.