Difference between revisions of "CloudFare Test"

From Lojban
Jump to navigation Jump to search
m (Maik moved page CacheTestingPage to LFK CloudFare Test without leaving a redirect: testing)
Line 1: Line 1:
== first edit ==
+
== test 1 ==
 +
 
 +
=== first edit ===
  
 
The purpose of this page is to see if I can bypass the Cloudflare using the ampersand trick.
 
The purpose of this page is to see if I can bypass the Cloudflare using the ampersand trick.
Line 13: Line 15:
 
https://mw.lojban.org/index.php?title=CacheTestingPage&action=edit
 
https://mw.lojban.org/index.php?title=CacheTestingPage&action=edit
  
... without the &setlang=en query string variable.  
+
... without the &setlang=en query string variable.
  
 
Okay time to Save page...
 
Okay time to Save page...
  
== second edit ==
+
=== 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
 
Okay I saved the page but I stupidly forgot to look at the URL before clicking Edit but right now the URL is again
Line 25: Line 27:
 
Saving...
 
Saving...
  
== third edit ==
+
=== third edit ===
  
 
Okay, saving the page redirected me to
 
Okay, saving the page redirected me to
Line 35: Line 37:
 
And, as expected, the displayed page is a cache of the first edit.  Sorry, no dice.
 
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.  
+
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...
 
Saving edit #3...
  
== fourth edit ==
+
== 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:
 
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:
Line 51: Line 55:
 
  </nowiki>
 
  </nowiki>
  
Why on earth would  
+
Why on earth would
  
 
https://mw.lojban.org/index.php?title=CacheTestingPage
 
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.  
+
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...
 
Okay, let me see if it really isn't cached.  Saving...
  
  
== fifth edit ==
+
=== fifth edit ===
  
 
Okay I have verified after fourth save that:
 
Okay I have verified after fourth save that:
Line 67: Line 71:
 
https://mw.lojban.org/papri/CacheTestingPage - does not bypass cached / is cached
 
https://mw.lojban.org/papri/CacheTestingPage - does not bypass cached / is cached
  
Why??  I don't know.  
+
Why??  I don't know.
  
 
Saving...
 
Saving...
  
  
== sixth edit ==
+
=== sixth edit ===
  
 
Turns out I was WRONG.  The last edit had predicted behavior.
 
Turns out I was WRONG.  The last edit had predicted behavior.
Line 81: Line 85:
  
 
I don't really get this.  Saving...
 
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.

Revision as of 20:51, 11 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.