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

    Spoofh

    01/13/2021, 10:26 PM
    That maybe explain a few things
  • t

    theGagne

    01/13/2021, 10:50 PM
    Randomly stumbled on this, kind of interesting: https://github.com/open-policy-agent/contrib/tree/master/wasm/cloudflare-worker
  • t

    theGagne

    01/13/2021, 10:51 PM
    I could see some future improvements w/ a router that enforces policies. I'm not using OPA, but it's interesting to think about the possibilities.
  • b

    balupton

    01/14/2021, 3:13 AM
    I imagine the cloudflare workers stack could be used to facilitate a peer discovery service, and multiple workers from different accounts could sync data to facilitate a multi-owner DHT, which could use some form of cryptography to verify what the worker says who is who is actually who is who. Such operating on the edge with cloudflare power would solve a lot of the current performance issues with DHT technology.
  • t

    Tiger 🐆

    01/14/2021, 4:37 AM
    Good Morning 💙
  • t

    Torch

    01/14/2021, 7:52 AM
    Thank you @User ! I was more interested in FOSS lib like next-auth , but unfortunately its not compatible with Cloufflare workers
  • t

    theGagne

    01/14/2021, 2:19 PM
    Yeah it would be nice to have more in this space. I built some stuff using Azure Open ID and it was not trivial since the libraries weren't compatible.
  • m

    Merlin

    01/14/2021, 5:34 PM
    Does the HTMLRewriter purposely ignore everything that is inside a
    noscript
    tag?
  • m

    Merlin

    01/14/2021, 5:34 PM
    Didn't expect that behavior tbh
  • a

    ai

    01/14/2021, 5:47 PM
    It doesn't ignore it, but it does process it as raw text instead
  • m

    Merlin

    01/14/2021, 6:10 PM
    ah interesting
  • m

    Merlin

    01/14/2021, 6:10 PM
    Kinda weird because browsers don't treat it like that tho
  • g

    ginkoid

    01/14/2021, 6:10 PM
    if js is enabled, content is treated like raw text
  • g

    ginkoid

    01/14/2021, 6:11 PM
    the content of noscript is parsed into the dom only if js is disabled
  • m

    Merlin

    01/14/2021, 6:17 PM
    if js is enabled
    noscript
    isn't rendered at all
  • g

    ginkoid

    01/14/2021, 6:24 PM
    yes it isnt rendered but the html parser treats noscript content as text, not html
  • g

    ginkoid

    01/14/2021, 6:25 PM
    similar to a textarea
  • m

    Merlin

    01/14/2021, 6:25 PM
    Maybe I just understand it wrong
  • m

    Merlin

    01/14/2021, 6:26 PM
    but the
    noscript
    content is not visible at all if javascript is enabled. Neither as html nor text
  • g

    ginkoid

    01/14/2021, 6:29 PM
    right. if you look in devtools at a noscript tag when js is on, then the content is shown as text
  • g

    ginkoid

    01/14/2021, 6:30 PM
    the distinction is really only relevant for parsing of malformed html
  • m

    Merlin

    01/14/2021, 6:31 PM
    ah that's what you mean
  • m

    Merlin

    01/14/2021, 6:31 PM
    ok I get it
  • m

    Merlin

    01/14/2021, 6:31 PM
    But I still don't see a reason to treat it like raw text in the HTMLRewriter
  • g

    ginkoid

    01/14/2021, 6:32 PM
    i assume theyre trying to match the normal browser behavior
  • m

    Merlin

    01/14/2021, 6:32 PM
    yeah I guess
  • m

    Merlin

    01/14/2021, 6:32 PM
    but noscript might contain other elements that the browser may display if js is disabled
  • a

    AlesVaupotic

    01/14/2021, 7:19 PM
    Hi, all! Aleš here, recently jumped the wagon and I'm loving it. A question: AVIF files are served as
    content-type: text/plain; charset=utf8
    so I can't inspect them in Chrome with
    Open image in new tab
    . Something I can configure?
  • a

    adaptive

    01/14/2021, 7:36 PM
    🥁 Wrangler 1.13.0 support for text blob bindings 👏
  • g

    ginkoid

    01/14/2021, 7:41 PM
    seems like
    @cloudflare/kv-asset-handler
    is using
    mime
    version
    2.4.6
    but avif support was published in
    2.4.7
    https://github.com/broofa/mime/issues/245#issuecomment-745723516
1...464748...2509Latest