Will all incoming requests count towards usage when using advanced mode?
Hi folks, I'm interested in the advacned mode of the pages functions.
Does
return env.ASSETS.fetch(request);
will comsume requests of plan even if they are static files?4 Replies
If so, is there a way to exclude paths from advanced mode worker? 🤔
OK, I think I found the answer from the the page's Real-time Logs after doing some tests.
1. All incoming requests from the advanced mode (_worker.js) count towards the quota.
2. The good news is that I can include and exclude routes by creating routing the file.
After that, there won't be any static file or unexpected requests appearing in worker and Real-time Logs.
Please correct me if I'm mistaken.
Cloudflare Docs
Routing | Cloudflare Pages docs
Functions utilize file-based routing. Your /functions directory structure determines the designated routes that your Functions will run on. You can create a /functions directory with as many levels as needed for your project's use case. Review the following directory:
Hello, have you found the actual answer from the cloudflare team regarding this matter? I cannot find the answer from the discord search functionality using the keyword "pages function advanced" nor google using the keyword "pages function advanced billing". I'd also like to know if advanced mode will add to the bill even when serving the static files and _routes.json file are present.
Not yet.