V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
timxu

cloudflare worker 懂行的

  •  
  •   timxu · Apr 27 · 582 views
    付费请教和调试

    1. cloudflare worker 比较懂的朋友, 帮忙设置和调试.
    2. 可以把网站 render 的页面缓存到 CDN
    3. 当有爬虫访问时取缓存的页面
    1 replies    2026-04-27 22:07:14 +08:00
    JoeJoeJoe
        1
    JoeJoeJoe  
    PRO
       Apr 27 via iPhone
    这个直接扔给 ai 就行,需求很明确了.

    如果能识别爬虫的特征码的话,直接用 cf 的 cache.default 去 match 一下请求,如果没有的话就获取 put 到 cache 里面

    刚让把你的问题扔给 ai ,ai 的答案很正确,我现在用手机不太方便贴代码,你自己让 ai 处理一下就行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   802 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 20:24 · PVG 04:24 · LAX 13:24 · JFK 16:24
    ♥ Do have faith in what you're doing.