Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersβ€’2y agoβ€’
2 replies
TheNinthSky

Running workers conditionally

Is it possible to run the worker conditionally and not for every incoming request?
In my case, I'd like the worker to run only for document (html) requests, meaning for every request pathname that does not include a period (since having a period in the pathname means directly requesting a file).
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Orchestrate long running workers
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
How many workers are running?
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
CF Workers always running out of memory
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3mo ago