Received: from mail-qk1-f186.google.com ([209.85.222.186]:49210) by stodi.digitalkingdom.org with esmtps (TLSv1.3:TLS_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j6qv6-0005Ht-Hb for lojban-list-archive@lojban.org; Tue, 25 Feb 2020 23:15:53 -0800 Received: by mail-qk1-f186.google.com with SMTP id t17sf2808500qkg.16 for ; Tue, 25 Feb 2020 23:15:48 -0800 (PST) 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-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-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 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state: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:x-spam-checked-in-group:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=vLkIUL1kolHnqVQ1/hbsRLGuCDip0FxhVqVGUHC5n3Q=; b=juBsSNYtr50zDby+zsMnA6XS1oMCpEySuEhL4o5SgE66Z8ILagYw0thjBdS5A4jLRo pWe+mboAW064NpkkRtpxShAjg5nwShXnx9zkYC2EQ2Mpk+Li+9rUDkihY02sY/z9JSot EmcqTT4EFY26xcPikulFd1uhc/5fCGiLPRhoJJypKhCvFSGEO8RzZFo1FxPh4U5cK56L +nSY8CMI2e9rRGR9U+dycrY239HHO0gjAkCEU9saZKbMvbCLQSdSB5qpjjG04/8FY7rN M4qJwiOrZSxFHuO95TLOxlP8pPx6NgB8AUtzBL2YKaaqZoemkLJj/J4jsC3xBrpkjPhh Ic1w== Sender: lojban@googlegroups.com X-Gm-Message-State: APjAAAVuZmhhbgTX9FSap/SkLHyDW4Vv1ctWoZ3vouHD7AIqaHyRMxei zQr0nQEfWp2jBaFmpiQK+ZM= X-Google-Smtp-Source: APXvYqyolxhYGomd3TCA3hi1ByoKb+YOFCl3/4YqOws1bIRk7x6tslLE6/7mMLvCc4Y+7tjeAl3OzA== X-Received: by 2002:ac8:3f91:: with SMTP id d17mr3142846qtk.41.1582701341934; Tue, 25 Feb 2020 23:15:41 -0800 (PST) X-BeenThere: lojban@googlegroups.com Received: by 2002:ac8:7583:: with SMTP id s3ls712136qtq.7.gmail; Tue, 25 Feb 2020 23:15:41 -0800 (PST) X-Received: by 2002:ac8:6747:: with SMTP id n7mr3571331qtp.224.1582701341100; Tue, 25 Feb 2020 23:15:41 -0800 (PST) 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== 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-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 Received: from stodi.digitalkingdom.org (mail.digitalkingdom.org. [173.13.139.236]) by gmr-mx.google.com with ESMTPS id 23si93421qks.6.2020.02.25.23.15.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Feb 2020 23:15:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of rlpowell@digitalkingdom.org designates 173.13.139.236 as permitted sender) client-ip=173.13.139.236; Received: from rlpowell by stodi.digitalkingdom.org with local (Exim 4.92) (envelope-from ) id 1j6qux-0005Hn-Gk for lojban@googlegroups.com; Tue, 25 Feb 2020 23:15:39 -0800 Date: Tue, 25 Feb 2020 23:15:39 -0800 From: Robin Lee Powell To: lojban@googlegroups.com Subject: Re: [lojban] Re: What's going with CloudFlare and caching and such. Message-ID: <20200226071539.GE4720@stodi.digitalkingdom.org> Mail-Followup-To: lojban@googlegroups.com References: <20200206062919.GU26741@stodi.digitalkingdom.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-Original-Sender: rlpowell@digitalkingdom.org X-Original-Authentication-Results: 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 Reply-To: lojban@googlegroups.com Precedence: list Mailing-list: list lojban@googlegroups.com; contact lojban+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: lojban@googlegroups.com X-Google-Group-Id: 1004133512417 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Score: -2.8 (--) X-Spam_score: -2.8 X-Spam_score_int: -27 X-Spam_bar: -- 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.