[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lojban] Re: What's going with CloudFlare and caching and such.
- To: lojban@googlegroups.com
- Subject: Re: [lojban] Re: What's going with CloudFlare and caching and such.
- From: Robin Lee Powell <rlpowell@digitalkingdom.org>
- Date: Tue, 25 Feb 2020 23:15:39 -0800
- Arc-authentication-results: i=2; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of rlpowell@digitalkingdom.org designates 173.13.139.236 as permitted sender) smtp.mailfrom=rlpowell@digitalkingdom.org
- Arc-authentication-results: i=1; gmr-mx.google.com; spf=pass (google.com: best guess record for domain of rlpowell@digitalkingdom.org designates 173.13.139.236 as permitted sender) smtp.mailfrom=rlpowell@digitalkingdom.org
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:to:from:date:sender:dkim-signature; bh=vLkIUL1kolHnqVQ1/hbsRLGuCDip0FxhVqVGUHC5n3Q=; b=GqlapheaxwP5MTzLOE7NoaEzk1iaDZI1AwOTB31ScA0j6jOyzI6RAmGf6KKxHHO/ox WNBTWmRp5ATCRPUoVu+o+WBt92+o7h4O5wb/4BroX/29ZfVSydTA6h+AqksIBLTktm0l C7mdW5aZmTgjKJK6lT8Y4s54ZuW/fkWXVvOYUQihv+DxOXlM8u44+WKnGgkC6C6msClh dLXg6IB4S5gzhoABjuhqBpXww7tTTpdUIHhCZUt9MjfcciB5mgsc3+GUvZK7NVT3CeYy xvd64seMzjdcw4yRw1t3xeaBWesALwuBHnop0wurZgN5Zc+t3s1HBq+FZYtAgI/I6I9E k0Ag==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:to:from:date; bh=1eF9D+F50QE1147IUnf8a6/ol71iVtcLAJNyr78wPqg=; b=bobb9t7YoMCmL8yoSVlbcEx9ENxB1sScvos9Gxr8qZ1QetHF4DpTxBCfMu8EjhwLDT 0fSxtVON7N8eYh+gbfPaWpvRxjA0RDLvGXN9oIA7KooxmQL6gOzMUozc2/eAXKtxRV37 m3qhANl4J2d18tgVwQHUp9scwBaRVMnf3ncDQmGq+CDs3DPEXjzTCcDaMwQOLSDf+y6H 0I3BNSf7ghZsgAFKTfSOdJgFXH1vCghL2CmyTI6iax8dNupl9I2ZQ2xuLdIMu4M8D0Wd foZlN22iYDqECh7LYEXFLF//dY+PUN8vP9NyuIx5bu5iimzwf1AQaiey1uA2bw+l6tfV Q6Zg==
- Arc-seal: i=2; a=rsa-sha256; t=1582701342; cv=pass; d=google.com; s=arc-20160816; b=U9+zO4/VFf5HwEERUfBCRJeXcfQhUJzo88z42OUMRwEZs0fHqHzcFe7BqBEuuPgc4F kmIcQEnLpcKtmn230rm1f1PFmawdI/1vF6MbniKgawY4eoFXzfgE4qx0L5E3jYWzpRqX 9HU63ixWeh++WpVAexp/T5Aa3bK1D63XbUnJ606GJLYox907e/ELmbyE4PMXTs/sH9IX aRcbRiHKLeX83j177viUAWIKJGi/B133c22tYK/pEl3fKxzUXuccHrrZuz2ygdNUaLck CeWIbgIrVCICn3WNjVlwoDeWGhioq10bsrfZHw/4efOhU3KpXlNSQ1irzcJsMINharuu q6qA==
- Arc-seal: i=1; a=rsa-sha256; t=1582701341; cv=none; d=google.com; s=arc-20160816; b=TaofQrTr+8k2t+ELuhEtupJ8vhrVqaJ4XwnvBPtyHv9Pb9KfRcmRTBEcLHj+oo9v6U vQIZet64GdTXtwZxqaqMX7uNCobYzCVixUh9IOGy7ojPAWOsFU4l3R32notNN2+JC1tE t7HqLHJV4XMBk3ZR0J4F1ftqTHsEU89MHWl/0/lfYU1+bfuoeMl1+8MInGY+3wf1rwZI /e0ozRwXPFexw3aU80uIZgMmIbwRmSoVIbHHym5wjPIjvb5z/GKlan7OdcyguDkOdYwx d62vYoCusRkoO2Y2ZfCGWdHAF0ff94beqKtBwzrg9NQMKIWIFanJkdd6DUOns4iggaeM FeNQ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=vLkIUL1kolHnqVQ1/hbsRLGuCDip0FxhVqVGUHC5n3Q=; b=P5QdsZ2I2R97k2Nfw3UzlGw7uEWY5L7K725f+bqFXhLe5iWUyNZlyh9DvV4SSYIMJC xbzBqDNZtsLgHOnITPEIdYHxdMGzX0CmkIvT5KC2XIiu8c8Xqng8aURqXCcSaWwSfhRY a2Du2zsfcTbxG33znm8tXToe6pWB6HnPT4/ro6xZUoP1xhAh+wR1CqjQOz6UWHhpAANp AlMbzuoYO+ghlJmFC3mZ7QwQcalD6w7FzCmVVSd9qgUIQlF/du7wWBBq5xUswBhf8m5H NBJ/Wy86eIkm6UaWNvWMBzoW/eUzlBBHV2nVx/syMEfC4yNNlE0XjxXyCOk78GcEAG21 t9MA==
- In-reply-to: <d444e62c-2706-4bd5-ba06-84da52b2c69c@googlegroups.com>
- List-archive: <https://groups.google.com/group/lojba>
- List-help: <https://groups.google.com/support/>, <mailto:lojban+help@googlegroups.com>
- List-id: <lojban.googlegroups.com>
- List-post: <https://groups.google.com/group/lojban/post>, <mailto:lojban@googlegroups.com>
- List-subscribe: <https://groups.google.com/group/lojban/subscribe>, <mailto:lojban+subscribe@googlegroups.com>
- List-unsubscribe: <mailto:googlegroups-manage+1004133512417+unsubscribe@googlegroups.com>, <https://groups.google.com/group/lojban/subscribe>
- Mail-followup-to: lojban@googlegroups.com
- Mailing-list: list lojban@googlegroups.com; contact lojban+owners@googlegroups.com
- References: <20200206062919.GU26741@stodi.digitalkingdom.org> <d444e62c-2706-4bd5-ba06-84da52b2c69c@googlegroups.com>
- Reply-to: lojban@googlegroups.com
- Sender: lojban@googlegroups.com
- User-agent: Mutt/1.11.3 (2019-02-01)
How's the behaviour now? You should be seeing that logging in gets
you the live site without caching.
On Fri, Feb 07, 2020 at 09:35:34AM -0800, la .eris. wrote:
> Personally, this is seeming like more trouble than it's worth. Pages keep
> displaying improperly (looking like I'm not logged in, or like someone else
> is logged in). I'd prefer to just have the site down when your server is
> down and have everything work properly the rest of the time.
>
> Incidentally, how do the Wikimedia Foundation wikis handle caching?
>
> -Aris (aka. bookofportals)
>
> On Wednesday, February 5, 2020 at 10:29:23 PM UTC-8, Robin Lee Powell wrote:
> >
> > Some of you have noticed problems with dynamic content on lojban.org
> > now that we've started using CloudFlare. I haven't been able to
> > figure out how to fix this, so here's what's going on; maybe
> > somebody else will have ideas.
> >
> > So the goal of CloudFlare, primarily, was to make it so that if my
> > server went down, the site would be basically fine. This we have
> > acheived.
> >
> > However, to do so, I had to use brute force. Here's our CloudFlare
> > page rules:
> >
> > *lojban.org/*&* Cache Level: Bypass
> > *lojban.org/*edit* Cache Level: Bypass
> > *lojban.org/*Special:* Cache Level: Bypass
> > *lojban.org/*Talk:* Cache Level: Bypass
> > *lojban.org/* Browser Cache TTL: 30 minutes, Always Online: On,
> > Cache Level: Cache Everything, Edge Cache TTL: 2 hours, Origin Cache
> > Control: Off
> >
> > That last one is a very large hammer that says "just cache the hell
> > out of everything".
> >
> > The reason I need that hammer is that mediawiki is returning
> > absurdly wrong caching headers. Here's an example that entirely
> > bypasses CloudFlare:
> >
> > $ curl -k -v -H 'Host: mw.lojban.org' -L
> > https://jukni.lojban.org/papri/pronunciation 2>&1 | less
> > [snip]
> > < HTTP/1.1 200 OK
> > < Date: Thu, 06 Feb 2020 06:26:31 GMT
> > < Server: Apache/2.4.38 (Debian)
> > < X-Powered-By: PHP/7.3.14
> > < X-Content-Type-Options: nosniff
> > < Content-language: en
> > < Vary: Accept-Encoding,Cookie
> > < Expires: Thu, 01 Jan 1970 00:00:00 GMT
> > < Cache-Control: private, must-revalidate, max-age=0
> >
> > ^^ That. That Cache-Control line is absurd, and effectively
> > completely disableds CloudFlare.
> >
> > I have tested this by talking *directly* to the mediawiki server,
> > no SSL, no proxies, no nothing; it's the same.
> >
> > Our LocalSettings.php file is attached.
> >
> > I don't care if the solution is on the mediawiki side or the
> > CloudFlare side, but at this point I've sunk more time into this
> > than I can afford and I've come up empty, so I'd appreciate any
> > ideas you might have.
> >
> > Having said that, if you're going to point me at
> > https://www.mediawiki.org/wiki/Manual:CloudFlare#Integration_with_MediaWiki
> > , you'll need to tell me exactly which part you think is relevant,
> > and why. Most of that page is about making X-Forwarded-For: do the
> > right thing, which is totally irrelevant to this problem.
> >
> > Thanks for any help.
> >
>
> --
> You received this message because you are subscribed to the Google Groups "lojban" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to lojban+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/lojban/d444e62c-2706-4bd5-ba06-84da52b2c69c%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "lojban" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lojban+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lojban/20200226071539.GE4720%40stodi.digitalkingdom.org.