5 Commits

Author SHA1 Message Date
mokhtar 1210123684 fall back to GET when HEAD fails for redirect detection
some URL shorteners (e.g. amzn.eu) return 404 for HEAD requests
but 301 for GET. try HEAD first, fall back to GET on 404/405.
also replace the old test guard hack with proper fetchMock usage.
2026-02-08 15:50:41 +01:00
mokhtar 59b2e3eef0 support only GET/DELETE methods 2025-09-20 14:50:27 +02:00
mokhtar a3d639df6c purge cache with DELETE method 2025-09-20 14:50:06 +02:00
mokhtar 44ebc2b487 implement url cleaning based on ClearURLs rules and logic 2025-09-20 12:59:45 +02:00
mokhtar ca369dc516 Initial commit (by create-cloudflare CLI)
Details:
  C3 = create-cloudflare@2.51.6
  project name = url-cleaner
  package manager = npm@10.9.2
  wrangler = wrangler@4.36.0
  git = 2.51.0
2025-09-20 09:24:00 +02:00