commit 236c30ccea5c1a502e655085e4c04ea343768f98
parent c2579d4ee5b939e83b58c93295a622e1e4463589
Author: ASWANTH R <aswanthr82@gmail.com>
Date: Sun, 4 Oct 2026 18:43:28 +0530
Update fetch options for API call in pytml.js
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/pytml.js b/pytml.js
@@ -1,8 +1,10 @@
-fetch('https://pytml.vercel.app/api/count')
+fetch('https://pytml.vercel.app/api/count', {
+ cache: 'no-store',
+ referrerPolicy: 'origin'
+})
.then(r => r.json())
.then(data => console.log('Pytml loaded:', data.message, 'times'))
.catch(() => {});
-
/*
* Pytml 2.5.0
* Python + HTML, powered by Pyodide.