https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • y

    Yoav

    02/01/2021, 7:05 PM
    They are streaming on Discord
  • a

    andrew | 1003

    02/01/2021, 7:05 PM
    woohoo!
  • m

    Macley

    02/01/2021, 9:14 PM
    So no recording...?
  • m

    Macley

    02/01/2021, 9:14 PM
    No clue if my question was answered xD
  • e

    eidam | SuperSaaS

    02/01/2021, 9:16 PM
    We had the stream here on Discord instead, all of the question posted to #804778321580654672 were answered and there will be also transcript with all the answers later on 🙂
  • m

    Macley

    02/01/2021, 9:16 PM
    Oh greats ❤️ curious what the opinion on server code and/or http header stuff will be
  • j

    jefflomacy

    02/02/2021, 1:01 AM
    cloudflare dashboard down for anyone else
  • j

    jefflomacy

    02/02/2021, 1:01 AM
    just spinning
  • g

    Greg Brimble | Cloudflare Pages

    02/02/2021, 1:02 AM
    Fine for me (UK)
  • j

    jefflomacy

    02/02/2021, 1:02 AM
    southeast us here
  • j

    jefflomacy

    02/02/2021, 1:02 AM
    error 524, timeout
  • g

    Greg Brimble | Cloudflare Pages

    02/02/2021, 1:03 AM
    Taking any particular action, or literally just trying to load
    dash.cloudflare.com
    ?
  • j

    jefflomacy

    02/02/2021, 1:03 AM
    just trying to load dash so i can configure a WAF rule
  • j

    jefflomacy

    02/02/2021, 1:04 AM
    it loaded now, but slow. ty
  • n

    Neo

    02/02/2021, 1:46 AM
    Hi is it normal to recieve this amount of packets in a very short period of time they all come from cloudflare
  • w

    wilbo007

    02/02/2021, 2:18 AM
    100 packets? yes. your pc is probably sending and receiving thousands of packets per second
  • n

    naveed

    02/02/2021, 5:01 AM
    Hey amazing CF team! This makes me really curios to understand the Workers limits of 100,000 requests per day. I have been playing around and testing myself (no live traffic), and surprisingly Workers analytics shows "Total 20.37k request". I setup workers on domain.com/testfolder/*. I wonder when setting * the requests are considered for static assets as well? because the page has around 200 assets, so for every request its 200+ requests? is there a way to exclude static assets i.e. images/css/js so they are served by CF usual way and not thru workers?
  • g

    ginkoid

    02/02/2021, 5:09 AM
    you can add a worker route with a worker of "None" to disable workers on a path
  • n

    naveed

    02/02/2021, 5:28 AM
    Yes, but it doesn't support *.css, *.js etc.. the reason I cannot add router for specific subfolder eg. /img, /css, because I will not know what the users website structure is..
  • g

    ginkoid

    02/02/2021, 5:29 AM
    hmm then running a worker might be unavoidable?
  • g

    ginkoid

    02/02/2021, 5:29 AM
    iirc the wildcard for worker routes is fairly limited
  • n

    naveed

    02/02/2021, 5:31 AM
    or wish, workers doesn't count static assets towards the request limit.
  • g

    ginkoid

    02/02/2021, 5:34 AM
    the worker would still need to execute regardless
  • n

    naveed

    02/02/2021, 5:45 AM
    🥺
  • n

    naveed

    02/02/2021, 5:50 AM
    I am using HtmlRewriter eg. appending loading=lazy to img tag ... which means workers manipulating html code ... however because I set rout to /*.. is workers processing actual jpeg image with the HtmlRewriter ? I believe even if I add condition to process only text/html ... for other simply output response, it will still be counted towards limits.. this also means, I can prob. have no more than just 500 requests for a 100k limit 😢
  • w

    Walshy | Pages

    02/02/2021, 6:05 AM
    You seem to be in a pretty niche position where you have no idea or control over the layout. So yeah, sadly seems this will be the case. I hope they do add wildcard format support (*.html for example) in the future but I guess we'll see
  • c

    Ceru ©

    02/02/2021, 11:07 AM
    Are you setting the cache headers correctly?
  • g

    Greg Brimble | Cloudflare Pages

    02/02/2021, 11:14 AM
    If the route matches, the Worker will execute, regardless of any cache settings. This is normal behaviour. The only way to reduce the number of requests your Worker processes then, would be to put your assets on a path which doesn't match the Worker's route (unfortunately not really possible when, as @Walshy | Pages said, you don't have any control over or knowledge about the site itself).
  • p

    Poli

    02/02/2021, 11:40 AM
    Is it possible to convert my whole website from PHP to JS using this? I am really not familiar with workers and JS. So quite unsure if I need to do something more with babel (like install it?)
  • p

    Poli

    02/02/2021, 11:40 AM
    https://github.com/cloudflare/php-worker-hello-world
1...798081...2509Latest