Received: from mail-yb1-f192.google.com ([209.85.219.192]:38176) by stodi.digitalkingdom.org with esmtps (TLSv1.3:TLS_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j07Xa-0002SM-Ib for lojban-list-archive@lojban.org; Fri, 07 Feb 2020 09:35:45 -0800 Received: by mail-yb1-f192.google.com with SMTP id t3sf2685457ybb.5 for ; Fri, 07 Feb 2020 09:35:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=JE8hVM3yIVkvI4r8rdhoDn60vsaGkD/hx6jyxe+xgx8=; b=F76ESgNUpr9vVPAOroQTv1G6gDXjmLRyMrPLlzI9THzOTbhidS9v5L1l+HlONs3noD vIxoHAMx4RATSHRhD7BENYw82z/TDI0bv1vR1Qfg9HGmKZWJR8DShIAGUUv3yuDk0W+d 3PSPruw7vKXQ5EhYnf0MlyIlg5DjPgw0bflMx3TIQr0dfad23sbEf0o7U/odBL9rajji QJUCSMuODJZ3wLeG/PPmv7tLd/n9Ol66oM8m8DyVmO6QTplgPJlTWj0Vy4U0vxMZJl99 N478cTMbhaMtR3M92+dZKfTY16e6EPKwRRZiNZ0m6P2IyEy0lzRNJ8An9axL5OiOCvqX cUqw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=JE8hVM3yIVkvI4r8rdhoDn60vsaGkD/hx6jyxe+xgx8=; b=PI1GuPFIiP6ueksOU8OWsp4OXdwSwR47igVAecPkCdaJbp7y4LjOT94P7rdUQHGGU7 lNNZOYkDuN4ksmqVVvZNCpjaJXfuYCcHb2Uh3SFoDVZbiK7vWuhs2PJ20w3n2wcXDFwX q6s0Rrj9lvAuW4HjnL3sU3CKx9D4Pzpj5RNIcGU5Fu11rne96PSc0W6DKOFyDYhRq9S6 glqoM4srJM/NqzTCIkSCaakdFI9AyL51MtmTMqAPrXWo9jZRIiKOS9KkiHY3WvwLl4cG WDcPXJgztJSxErBCmbrADfs3DXPaoi8y/FFcv7HyHpe/7LwtosBpjAj8+wy9p1rYe9tB VBmA== 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:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=JE8hVM3yIVkvI4r8rdhoDn60vsaGkD/hx6jyxe+xgx8=; b=qIGHeYtxoR5d8q6H74l+fpwm4mCMt1oFHFWuc7WNG8Tu9iLZWeNf4Oz3bv86fh1tD/ So2IKE0ucz7utMWXUfm5Ysy+DlhzojM/9ecHB8bm3EUcEydJC3E7UgSXodStvb2uBYQX fOZ6qHd/ESa7L3CDFrxfXy+tZSH9Z1Y2Spr9N9erczzWKMgopWbr3m6MuJV4eqK89CWU bayzhVcG+QrZwQWaI5AsEBGRh+mnLGOO5LYmneM1FB+2cecfL/ZKItK5wnw8OyhRFjm9 fBx1boOcHgc15/P21EzVRMjwOIZ3ov1ouYGk+LVGPCSnsckWV1Ys3V48bpkXEzs0adAQ MBzw== Sender: lojban@googlegroups.com X-Gm-Message-State: APjAAAUm+fK52p6lr05/eo6DBc3P+Yvz+m52ZYVKvWFj6ndCPl1OSd4S JilGZrmeSyeyPeCWudjPDJg= X-Google-Smtp-Source: APXvYqwFhjf36zpLEhG0ujz6dCZMw7VlT3TDaeGKFe26xCYxEaHiKijhlq+rF4J9u2ZGqhilyzUT1g== X-Received: by 2002:a25:d204:: with SMTP id j4mr265379ybg.140.1581096936466; Fri, 07 Feb 2020 09:35:36 -0800 (PST) X-BeenThere: lojban@googlegroups.com Received: by 2002:a5b:888:: with SMTP id e8ls29814ybq.10.gmail; Fri, 07 Feb 2020 09:35:36 -0800 (PST) X-Received: by 2002:a05:6902:725:: with SMTP id l5mr242958ybt.91.1581096935684; Fri, 07 Feb 2020 09:35:35 -0800 (PST) Date: Fri, 7 Feb 2020 09:35:34 -0800 (PST) From: "la .eris." To: lojban Message-Id: In-Reply-To: <20200206062919.GU26741@stodi.digitalkingdom.org> References: <20200206062919.GU26741@stodi.digitalkingdom.org> Subject: [lojban] Re: What's going with CloudFlare and caching and such. MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_483_2030375460.1581096934874" X-Original-Sender: WizKarim@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: -- ------=_Part_483_2030375460.1581096934874 Content-Type: multipart/alternative; boundary="----=_Part_484_1151196943.1581096934875" ------=_Part_484_1151196943.1581096934875 Content-Type: text/plain; charset="UTF-8" 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. ------=_Part_484_1151196943.1581096934875 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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 sit= e down when your server is down and have everything work properly the rest = of the time.

Incidentally, how do the Wikimedia Foundati= on wikis handle caching?

-Aris (aka. bookofportals)<= br>
On Wednesday, February 5, 2020 at 10:29:23 PM UTC-8, Robin Lee Powel= l wrote:
Some of you have notic= ed problems with dynamic content on loj= ban.org
now that we've started using CloudFlare. =C2=A0I haven't been a= ble 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=A0This we have
acheived.

However, to do so, I had to use brute force. =C2=A0Here's our Cloud= Flare
page rules:

*lojban.org= /*&* =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Cache Level: Bypass
*lojban.or= g/*edit* =C2=A0 =C2=A0 =C2=A0 Cache Level: Bypass
*lojban.org/*Special:* =C2=A0Cache Level: Bypass
*lo= jban.org/*Talk:* =C2=A0 =C2=A0 Cache Level: Bypass
*lojban.org/* =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 Browser Cache TTL: 30 minutes, Always Online: O= n, Cache Level: Cache Everything, Edge Cache TTL: 2 hours, Origin Cache Con= trol: Off

That last one is a very large hammer that says "just cache the hel= l
out of everything".

The reason I need that hammer is that mediawiki is returning
absurdly wrong caching headers. =C2=A0Here's an example that entire= ly
bypasses CloudFlare:

$ curl -k -v -H 'Host: mw.lojban.org' -L https://jukni.lojban.org/papri/pronunciation 2>&1 | les= s=20
[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 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#Integrati= on_with_MediaWiki
, you'll need to tell me exactly which part you think is relevant,
and why. =C2=A0Most of that page is about making X-Forwarded-For: do th= e
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+unsub= scribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lo= jban/d444e62c-2706-4bd5-ba06-84da52b2c69c%40googlegroups.com.
------=_Part_484_1151196943.1581096934875-- ------=_Part_483_2030375460.1581096934874--