Like Ra's Naughty Forum
Cloudflare experiment - Printable Version

+- Like Ra's Naughty Forum (https://www.likera.com/forum/mybb)
+-- Forum: Technical section (https://www.likera.com/forum/mybb/Forum-Technical-section)
+--- Forum: Site (https://www.likera.com/forum/mybb/Forum-Site)
+--- Thread: Cloudflare experiment (/Thread-Cloudflare-experiment)

Pages: 1 2 3 4 5 6


RE: Cloudflare experiment - Like Ra - 02 Aug 2023

(02 Aug 2023, 21:04 )Like Ra Wrote: And I will add cache for games.
Done! Available for registered users only.


RE: Cloudflare experiment - Like Ra - 02 Aug 2023

More side effects:

- possible stale cache. Free tier users can purge the whole cache only.
- SPAMmers can not be identified by IP, as all traffic to the site comes from the CloudFlare addresses.


RE: Cloudflare experiment - Like Ra - 03 Aug 2023

(02 Aug 2023, 20:34 )Like Ra Wrote: Whoa...... Looks like I've just "hacked" MyBB attachment system.... All attachments are cached now

And this is the result:

 cloudflare_24h_band_20230803_014404.png thumbnail   

Almost everything is cached now and being served from CloudFlare! That's impressive!


RE: Cloudflare experiment - Zooy - 03 Aug 2023

(02 Aug 2023, 21:12 )Like Ra Wrote:
(02 Aug 2023, 21:04 )Like Ra Wrote: And I will add cache for games.
Done! Available for registered users only.

After this I can no longer play bubbles on my Apple powerbook.
The message is
 Screenshot 2023-08-03 at 11.56.30.png thumbnail   
Could it be that an executable for another OS is sitting in the cache?

BTW: I appreciate your efforts very much. Things like this are unavoidable.


RE: Cloudflare experiment - Like Ra - 03 Aug 2023

(03 Aug 2023, 11:01 )Zooy Wrote: After this I can no longer play bubbles on my Apple powerbook.
I cleaned the cache yesterday after upgrading Ruffle - apparently something's stuck. I discovered, that it's possible to clean the cache by the URL - no need to purge everything.

And then we have a hierarchy of caches ...


RE: Cloudflare experiment - Like Ra - 03 Aug 2023

OK, let's list all the steps to update Ruffle.

- Download new version from https://ruffle.rs/#downloads
- Remove the old one, upload new files
- Stop apache, remove all cached files, start apache
- Check the page source for the combined JS URL
- Purge all related URLs from CloudFlare cache
https://www.likera.com/lib/ruffle/package.json
https://www.likera.com/lib/ruffle/ruffle.js
https://www.likera.com/lib/ruffle/ruffle.js.map

Let's see if it's complete...


RE: Cloudflare experiment - Zooy - 03 Aug 2023

(03 Aug 2023, 15:35 )Like Ra Wrote: OK, let's list all the steps to update Ruffle.

- Download new version from https://ruffle.rs/#downloads
- Remove the old one, upload new files
- Stop apache, remove all cached files, start apache
- Check the page source for the combined JS URL
- Purge all related URLs from CloudFlare cache

Let's see if it's complete...

And now it works again.
Great work!


RE: Cloudflare experiment - Zooy - 03 Aug 2023

And now it doesn't.
Looks like you opened quite a can of worms.....


RE: Cloudflare experiment - Like Ra - 03 Aug 2023

Here's a shortcut for you: https://www.likera.com/forum/mybb/games.php?action=play&gid=2&ModPagespeed=Off


RE: Cloudflare experiment - Like Ra - 03 Aug 2023

Ah, found! package.json should be removed from the cache!

OK, now I know what needs to be done. I think ...