Received: from mail-pj1-f59.google.com ([209.85.216.59]:43278) by stodi.digitalkingdom.org with esmtps (TLSv1.3:TLS_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j03EF-0001RV-Gu for lojban-list-archive@lojban.org; Fri, 07 Feb 2020 04:59:29 -0800 Received: by mail-pj1-f59.google.com with SMTP id i3sf1248718pjx.8 for ; Fri, 07 Feb 2020 04:59:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1581080361; cv=pass; d=google.com; s=arc-20160816; b=QwbC2p6xdqoqKKD00KhTAARoJ1tdJcX6Z82BH1HyAme2AQ8LvXxB5CBXEcSR3Nhxao jEW8XP7dwCbxZx5CyNIO3Ayj1sYzCeSbBdVj8u0RKJ6LO/P+HW5K4/pRMoxfEAjZXasR oym2NwV5U5yjBtD/DPOKCAtdpdyQudhHmOu5dxXX9dNC4wBSi+k/ipn1X+kFQecj/Xie DOU9mtNCsUtUs+JKPTTFjA9wvtniejKjl4F34/WWie6R6foMdmfZUXynqyuRrI4yCKOw 1EGBV9Uxki9QNy9kGDnfyP8xoQlmLk8qMnspw+a8aAkFb5r4lsCe/JudQOANsnN5LfC6 5rzg== 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:to:subject:message-id:date :from:in-reply-to:references:mime-version:sender:dkim-signature :dkim-signature; bh=wKRDEQr5OsybvuF93kYakQvg2MHygWTyyZeCCxv8qjk=; b=wyLNq5zt/tEajLj/1oDwn2UPfOJeAmdOGzZlFG6FiVq39uv0Cs0wproVew0ANmmFhs oKgwgy7zD0MF6nmEDhe9zP2dO7xXi9wvxt2lvJgrWZWNXUIA/PxbrlTGPGQq53rKpAf1 5sRVfkRe/AhWaSmuExsb0fCMmG12M1DZWmzE36ljHv3rvSBwQ2c5zgDAhAtH/HM1N+mJ SGYLkZatt6uIt4N3kSwPqX28a1ftCa/e2slguVV2YRSCWInmNjSnqRThNQYU5GMTZLqy DX7KfUYLanUfftl+ZC03ZSePhXj9WDdVNMROXvnKI7Rwa0fHp/GJx84/O8Li/d5KuIPh xYyg== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jTX4cWYO; spf=pass (google.com: domain of maikxlx@gmail.com designates 2607:f8b0:4864:20::335 as permitted sender) smtp.mailfrom=maikxlx@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:references:in-reply-to:from:date:message-id :subject:to: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=wKRDEQr5OsybvuF93kYakQvg2MHygWTyyZeCCxv8qjk=; b=tfvuU2ulYfLar7/BhX5vtrAYTA74K0ZL5l2yHA1doJWyCPrT6oBUIbrtvkgpqDTw0f vupmV+p16MXKRh52WDiQ5biOUMi3PWTguP7Rycz/dkrtQYjzFgYh7G4ZQq8/1Y8QJk08 dIM1dnd5BgPUbo1rrBKEm3wof08LdB2Rqq5fTI6vC7dNMguh5YXnXivjYX57yg8UcUph pNA5fUovxsTwsb7U3fiArZp9vsRrqLOUQN1T2Z8d2PLx6eXAdfoOaArMIAPICD1TtUpE wpax/vG5sdmt59sdrgKw76vpBzLN7gskAP9U+S4QmZB/ZMp73EeWlc2PdDdcQjbStWt8 xV+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :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=wKRDEQr5OsybvuF93kYakQvg2MHygWTyyZeCCxv8qjk=; b=Wb8z6zXcDZFkVTVAsMTBjTpkqKwy5RqD4jXuPDmCA6GhwV0iweu3YfJ31p62poPnL+ +HBrWxiyIKNNkGXRLcwQsCnayBwxiHgAXJ/N9E/o8o6nL70hkOgJVO771j7lCv3/Zcci NhBwTshNY4f1laDP2knSOSpQoiA/bKbW3zK2YcOHPHAL2xDv7EiycYzB6nOl5myv9Zue uAtrQCOJc2HAvbcEfYoHLN0UnjZV8uPQ/IMkN8ZHu/dbh4K3g7OC/iamYm11pzNLDHSb Ku/3jHSv6Cf3cEAWWYhXaM8khsIGvA4xgAD8Suu/kseFaSItiI9pvZ/B2fv+ue3Z0NRQ CdSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:references:in-reply-to:from :date:message-id:subject:to: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=wKRDEQr5OsybvuF93kYakQvg2MHygWTyyZeCCxv8qjk=; b=GmaHlZyVYhBPn5xbPVMzXXNmmHsO8PALLvoomy+CTh4+bjcEAJDB0rfOZxsLTYIBZC j015KycuCeQhlOpAMTIJcl+I1H12N8+HHF9n5cS5k6B/9nnkkGjrO7p4jBKGIuqPVcrP /GwCQiWjHnEdwXB4X1HZyW1jSfZdKCYt7KpK2WnXhLUTLVIe3bmoQCz+pOSsy/gzDjwh E39zCjIOunq1bDx7pBWeGpmSMcbqnNk/u3GS5FkK4DDCstuDP1bHKqbKJeSA8KO82wFZ pXczal6tjG2uF9r6x6+e08gOt/OpXv8FcXWnMfs4hUjXhdPHRFKBWLw2QR0H0rBc19w+ A3OA== Sender: lojban@googlegroups.com X-Gm-Message-State: APjAAAVfuXAP0Qr+MIZxfjBedTklXbMq5lS2Invl8ic1wl1rCtTiVbWw 5hl0dJEopRyzZOrq0yIi5RU= X-Google-Smtp-Source: APXvYqx9UR7PXyFqfkzI4QADsHhwPZKEok53CJI/UK41nzIhN6/tdpZu6zsWAIijEDltrPM4S7vV2A== X-Received: by 2002:a17:90a:cf08:: with SMTP id h8mr3738864pju.81.1581080361370; Fri, 07 Feb 2020 04:59:21 -0800 (PST) X-BeenThere: lojban@googlegroups.com Received: by 2002:a63:c244:: with SMTP id l4ls4587331pgg.2.gmail; Fri, 07 Feb 2020 04:59:20 -0800 (PST) X-Received: by 2002:a63:131e:: with SMTP id i30mr9425085pgl.43.1581080360584; Fri, 07 Feb 2020 04:59:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581080360; cv=none; d=google.com; s=arc-20160816; b=nxweiQhSA+kJMkjQPDVryasjwOlgX45vo/WidpyfjOy+rJJSz1CYQVUfMTIqTrGfST Uk0/EeHLlLjWsihS4MG88tjU1jmU659nLuIbDsxRQCQVE8sPYnKswWln5TESEv/qxlcL nYJKssmJJGMC//MyJWeKpDyH4cB8f8kimR42AedzFwR7glvY+hEnTLfKzdE6LNL1yr0m YNPfZmgjKzAXH4GWPsiIaohBhXYk+F/+Fd4YCraJBl8owBYmhb7CXhG7FydMu2dezD/g FIv9KsXU2NokIw8kYSnfnMGlXclfyzjmnJ32METLXdsyBgJ850cOEnshqGD11UkoBK8y +xzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=2Fm+sKQh3D+NXNoTGac6lEGS4jDQY8vX0YfdMiOPe6Y=; b=u5KwtDJX2MMI11wz+KXkbW9LXbug1XEuWvelGFiZ+lPKHfLOR0JIlT5wHMMAlwnlHM fgKruYQWpxU06lpEcHcTa5cjbmmmnAeaL/WRqwK3RjMdLEzCRixXzpqLOghODI1T8MIo /HPi71lJlrp5xgvhhdznvxBCAu93XwSUOoWN9Pk6X1G4a/DpjvUqqr0BXhwco5OyWaym MwVt9yQai8bFJak4l2QhC2JVX/v56iWtkeYrfMbq7h8hrFKoe4oahamzy0MFmKU5NHkZ ilb6FQFjPHUPvGZyH4IMCY7DNZCiJzsMh30LjlQ6Ldb+sfpnhrJ5oXg+z3Gj3AdiQh7p 9Mvw== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jTX4cWYO; spf=pass (google.com: domain of maikxlx@gmail.com designates 2607:f8b0:4864:20::335 as permitted sender) smtp.mailfrom=maikxlx@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com. [2607:f8b0:4864:20::335]) by gmr-mx.google.com with ESMTPS id v13si102484pga.4.2020.02.07.04.59.20 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 07 Feb 2020 04:59:20 -0800 (PST) Received-SPF: pass (google.com: domain of maikxlx@gmail.com designates 2607:f8b0:4864:20::335 as permitted sender) client-ip=2607:f8b0:4864:20::335; Received: by mail-ot1-x335.google.com with SMTP id r27so2035915otc.8 for ; Fri, 07 Feb 2020 04:59:20 -0800 (PST) X-Received: by 2002:a9d:4801:: with SMTP id c1mr2640602otf.258.1581080359758; Fri, 07 Feb 2020 04:59:19 -0800 (PST) MIME-Version: 1.0 References: <20200206062919.GU26741@stodi.digitalkingdom.org> In-Reply-To: <20200206062919.GU26741@stodi.digitalkingdom.org> From: "Mike S." Date: Fri, 7 Feb 2020 07:58:58 -0500 Message-ID: Subject: Re: [lojban] What's going with CloudFlare and caching and such. To: lojban@googlegroups.com Content-Type: multipart/alternative; boundary="00000000000034704a059dfbf5db" X-Original-Sender: maikxlx@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jTX4cWYO; spf=pass (google.com: domain of maikxlx@gmail.com designates 2607:f8b0:4864:20::335 as permitted sender) smtp.mailfrom=maikxlx@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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.6 (--) X-Spam_score: -2.6 X-Spam_score_int: -25 X-Spam_bar: -- --00000000000034704a059dfbf5db Content-Type: text/plain; charset="UTF-8" On Thu, Feb 6, 2020 at 1:29 AM 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. > Judging from what I saw during the last outage, I believe Cloudflare is caching only pages that have been requested at least once. Assuming I am right about that, I don't know if there is a way to make Cloudflare cache the whole site without clicking through every page on the Wiki. By the way, I don't care about this issue since the site is up most of the time anyway, but since the whole point of the exercise is to cache pages and that doesn't necessarily happen, I thought I'd mention it! As far as the main issue, I can only guess. It might have something to do with an extension hijacking the Cache-Control header, but I don't know. At any rate, your bypass rule for talk pages seems to be working okay. Since we don't know what the problem is, I suggest the following for a temp fix -- Please add the following rules in the proper location: *lojban.org/*LFK* Cache Level: Bypass *lojban.org/*[bypasscache]* Cache Level: Bypass The first line will help the new committee work on their pages. The second line will allow a person to work on an arbitrary page without the cache. When the page is finished, it can then be moved to the correct location. I *believe* these rules will be sufficient for the time being and get you off the hook. Your help is very much appreciated!. -Mike > > 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/20200206062919.GU26741%40stodi.digitalkingdom.org > . > -- 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/CAOYwWb18QpfALOwJoSc-JxbiePDj1e1J35ePeHCVQVMUpi1%3DHw%40mail.gmail.com. --00000000000034704a059dfbf5db Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Feb 6, 2020 at 1:29 AM Robin Lee Powe= ll <rlpowell@digitalkingd= om.org> wrote:
Some of you have noticed problems with dynamic content on lojban.org
now that we've started using CloudFlare.=C2=A0 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.=C2=A0 This we have
acheived.

Judging from what I saw durin= g the last outage, I believe Cloudflare is caching only pages that have bee= n requested at least once. Assuming I am right about that, I don't know= if there is a way to make Cloudflare cache the whole site without clicking= through every page on the Wiki.=C2=A0 By the way, I don't care about t= his issue since the site is up most of the time anyway, but since the whole= point of the exercise is to cache pages and that doesn't necessarily h= appen, I thought I'd mention it!=C2=A0

As far as the= main issue, I can only guess.=C2=A0 It might have something to do with an = extension hijacking the Cache-Control header, but I don't know.

= At any rate, your bypass rule for talk pages seems to be working okay.=C2= =A0 Since we don't know what the problem is, I suggest the following fo= r a temp fix --=C2=A0 Please add the following rules in the proper location= :

*lojban.org/*LFK* = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Cache Level: Bypass
*lojban.org/*[bypasscache]* =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0Cache Level: Bypass

The first line will help the new committee work on their pages.=C2=A0 = The second line will allow a person to work on an arbitrary page without th= e cache.=C2=A0 When the page is finished, it can then be moved to the corre= ct location.

I *believe* these rule= s will be sufficient for the time being and get you off the hook.=C2=A0 You= r help is very much appreciated!.

<= /div>
-Mike
<= br>
=C2=A0

However, to do so, I had to use brute force.=C2=A0 Here's our CloudFlar= e
page rules:

*lojban.org/*&*=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Cache Level: Bypa= ss
*= lojban.org/*edit*=C2=A0 =C2=A0 =C2=A0 =C2=A0Cache Level: Bypass
*lojban.org/*Special:*=C2=A0 Cache Level: Bypass
*lojban.org/*Talk:*=C2=A0 =C2=A0 =C2=A0Cache Level: Bypass
*lojba= n.org/*=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Browser Cache TTL: 30 m= inutes, 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.=C2=A0 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=3D0

^^ That.=C2=A0 =C2=A0That 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.=C2=A0 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 &= quot;lojban" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to lojban+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lojban/202= 00206062919.GU26741%40stodi.digitalkingdom.org.

--
You received this message because you are subscribed to the Google Groups &= quot;lojban" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to lojban+unsub= scribe@googlegroups.com.
To view this discussion on the web visit https://groups.google= .com/d/msgid/lojban/CAOYwWb18QpfALOwJoSc-JxbiePDj1e1J35ePeHCVQVMUpi1%3DHw%4= 0mail.gmail.com.
--00000000000034704a059dfbf5db--