Difference between revisions of "CloudFare Test"

From Lojban
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 62: Line 62:
  
 
Okay, let me see if it really isn't cached.  Saving...
 
Okay, let me see if it really isn't cached.  Saving...
 
  
 
=== fifth edit ===
 
=== fifth edit ===
Line 74: Line 73:
  
 
Saving...
 
Saving...
 
  
 
=== sixth edit ===
 
=== sixth edit ===
Line 95: Line 93:
  
 
Saving.
 
Saving.
 +
 +
=== eighth edit ===
 +
 +
Previous edit was visible right away.
 +
 +
Second save this round...
 +
 +
=== ninth edit ===
 +
 +
one more test for good measure.
 +
 +
SAVING...
 +
 +
== test 4 ==
 +
 +
=== tenth edit ===
 +
 +
<pre>
 +
rlpowellAPP  9:07 PM
 +
Hey all.  I just made a change to the caching behaviour of the main lojban.org site; please try it out.
 +
9:07
 +
You should be able to log in and edit and see your edits right away, but when you log out your edits will be invisible for uh probably about 30 minutes.
 +
9:07
 +
Basically, logged in people bypass the cache.
 +
9:07
 +
Is the goal.
 +
</pre>
 +
 +
Well let's see...
 +
 +
=== eleventh edit ===
 +
 +
Changes from tenth edit immediately visible (i.e. success)
 +
 +
Saving...
 +
 +
=== twelfth edit ===
 +
 +
11th edit good.
 +
 +
By the way I forgot to mention I moved this page to
 +
 +
https://mw-live.lojban.org/papri/CloudFare_Test
 +
 +
That should dodge the "LFK" and "bypasscache" rules.
 +
 +
Saving...

Latest revision as of 02:17, 23 February 2020

test 1

first edit

The purpose of this page is to see if I can bypass the Cloudflare using the ampersand trick.

Since this is a wiki I will actually record what I am doing.

I started with this URL: https://mw.lojban.org/index.php?title=CacheTestingPage&setlang=en

And got the usual "There is currently no text in this page. You can search for this page title in other pages, search the related logs, or create this page."

I clicked on "create this page" and here I am. The new URL is

https://mw.lojban.org/index.php?title=CacheTestingPage&action=edit

... without the &setlang=en query string variable.

Okay time to Save page...

second edit

Okay I saved the page but I stupidly forgot to look at the URL before clicking Edit but right now the URL is again

https://mw.lojban.org/index.php?title=CacheTestingPage&action=edit

Saving...

third edit

Okay, saving the page redirected me to

https://mw.lojban.org/papri/CacheTestingPage

... which is the "pretty" URL and NOT index + query string

And, as expected, the displayed page is a cache of the first edit. Sorry, no dice.

This confirms what I was trying to say. If there is a way to stop the redirecting to the "pretty" URL then I would expect the trick to work. But I don't know how to do that right now.

Saving edit #3...

test 2

fourth edit

Starting a second round of tests. Reason: I don't understand why index.php?title=such_and_such is NOT cached, which makes me doubt that it is NOT cached. RLP's rules are:

*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
 

Why on earth would

https://mw.lojban.org/index.php?title=CacheTestingPage

not be cached? there is no & in that URL, and doesn't match any filtered pattern that I can see.

Okay, let me see if it really isn't cached. Saving...

fifth edit

Okay I have verified after fourth save that:

https://mw.lojban.org/index.php?title=CacheTestingPage - bypasses cached / is not cached https://mw.lojban.org/papri/CacheTestingPage - does not bypass cached / is cached

Why?? I don't know.

Saving...

sixth edit

Turns out I was WRONG. The last edit had predicted behavior.

https://mw.lojban.org/index.php?title=CacheTestingPage does NOT bypass cache.

I don't know why it appeared to bypass the cache earlier. Must have been lucky timing (?).

I don't really get this. Saving...

test 3

Current page title is now LFK_CloudFare_Test

seventh edit

this is the first edit testing the bypassing of the cache for pages with "LFK".

Saving.

eighth edit

Previous edit was visible right away.

Second save this round...

ninth edit

one more test for good measure.

SAVING...

test 4

tenth edit

rlpowellAPP  9:07 PM
Hey all.  I just made a change to the caching behaviour of the main lojban.org site; please try it out.
9:07
You should be able to log in and edit and see your edits right away, but when you log out your edits will be invisible for uh probably about 30 minutes.
9:07
Basically, logged in people bypass the cache.
9:07
Is the goal.

Well let's see...

eleventh edit

Changes from tenth edit immediately visible (i.e. success)

Saving...

twelfth edit

11th edit good.

By the way I forgot to mention I moved this page to

https://mw-live.lojban.org/papri/CloudFare_Test

That should dodge the "LFK" and "bypasscache" rules.

Saving...