somedude00 Posted April 29, 2019 Posted April 29, 2019 When upgrading IPB the webserver will return  Quote  Update in progress We're sorry, this web site is unavailable while an update is in progress. You can try again by clicking the button below, or try again later.  for every page requested during the upgrade. With Invision Community v4.4.3 that page is returned with Status: 200 OK This is a problem because web crawlers like GoogleBot visiting any page while the upgrade is going on will index these "update in progress" pages instead of the actual content (I guess it's the same issue when an admin manually disables the site via Settings -> General Configuration -> Site Online). Best practice is to reply with 503 Temporarily Not available instead of 200 OK when replying with such an "site is offline / update is going on" page.
bfarber Posted April 29, 2019 Posted April 29, 2019 We did this originally, but then site monitoring tools (which a lot of webmasters use to ensure their site remains online) would start going haywire whenever an upgrade was being performed. Presently, we do send a 503 if: You are not on our Community In The Cloud services OR you are logged in OR you are a search engine spider So, generally speaking, most users do get a 503 response during the upgrade. 🙂
somedude00 Posted April 29, 2019 Author Posted April 29, 2019 Ok. So the software has some kind of search engine spider whitelist to recognise spiders? This would be ok for me although keeping an whitelist up2date seems a bit overkill for this kind of issue :)
Black Tiger Posted April 29, 2019 Posted April 29, 2019 OR you are logged in Shouldn't this read "OR your are NOT logged in"? Because a status page of 200 when logged in seesm normal to me, at least for admins.
bfarber Posted April 30, 2019 Posted April 30, 2019 We only return a 200 status code if this is a (non-spider) guest and you are on our CiC offerings. Again, the reason for this is to limit the confusion and panic that can ensue when a site is "offline" for 5 minutes to perform a maintenance update. We normally send a 503 response header when the site is being updated.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.