tonutils / reverse-proxy

Reverse proxy for TON sites
Apache License 2.0
87 stars 18 forks source link

Cache is too aggressive #28

Open adapt7 opened 1 month ago

adapt7 commented 1 month ago

Hi there, I use latest version available of tonutils-reverse-proxy-linux-amd64.

My website updates every few minutes. When I test it from desktop browser all works fine. However when run through proxy and accessed by tonsite:// protocol from Telegram Destkop or Mobile app, the website data is very often out of date around 30-60 minutes, regardless of hitting Refresh button. No errors in logs, just normal access logs.

This looks like the proxy app (or Telegram?) caches the website content.

Can you provide any workaround please? That aggressive cache makes website unusable due to outdated content.

xssnick commented 1 month ago

Hi, yes, looks like telegram caches data, but i believe they should make it shorter soon

websharik commented 1 month ago

Android and Telegram Destkop dont using directly ton network yet. All .ton domains rewrite to -dton.magic.org (ex: foundation-dton.magic.org). Cache on magic.org side. Iphone works with directly ton network.

Nashev commented 1 month ago

Hm... At https://krutoscope-dton.magic.org I now see not the same content than at mac Telegram desktop client by click at krutoscope.ton