Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Cloudflare Pages can return a different status, redirect, or set of headers than you expect because static files and Pages Functions follow different rules. The key diagnostic is whether a request was served as a static asset or handled by a Function: _redirects and _headers govern static asset responses, not responses generated by Functions. Pages’ fallback and 404 behavior can also change with the files in your deployed output.

Why can Pages ignore _redirects or _headers?

Those files configure static asset responses. If a Pages Function handles the request, its response does not automatically inherit rules from either file. Cloudflare explicitly says that redirects in _redirects are not applied to requests served by Pages Functions, even when a Function route matches the URL pattern. Cloudflare Pages redirects documentation

The same boundary applies to custom headers: _headers does not add headers to responses generated by Pages Functions. If a Function or server-side rendering framework creates the response, set the needed headers in that code. Cloudflare Pages headers documentation

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A matching rule is not proof that it affected the response. First identify which path served it: a static asset, a Function, or a Function that deliberately falls through to asset serving. If the Function should redirect or set a header, implement that behavior in the Function. Alternatively, adjust Function routing so the request is handled as a static asset.

#1 Best Overall
Sale
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
  • DUAL-BAND WIFI 6 ROUTER: Wi-Fi 6(802.11ax) technology achieves faster speeds, greater capacity and reduced network congestion compared to the previous gen. All WiFi routers require a separate modem. Dual-Band WiFi routers do not support the 6 GHz band.
  • AX1800: Enjoy smoother and more stable streaming, gaming, downloading with 1.8 Gbps total bandwidth (up to 1200 Mbps on 5 GHz and up to 574 Mbps on 2.4 GHz). Performance varies by conditions, distance to devices, and obstacles such as walls.
  • CONNECT MORE DEVICES: Wi-Fi 6 technology communicates more data to more devices simultaneously using revolutionary OFDMA technology
  • EXTENSIVE COVERAGE: Achieve the strong, reliable WiFi coverage with Archer AX1800 as it focuses signal strength to your devices far away using Beamforming technology, 4 high-gain antennas and an advanced front-end module (FEM) chipset
  • OUR CYBERSECURITY COMMITMENT: TP-Link is a signatory of the U.S. Cybersecurity and Infrastructure Security Agency’s (CISA) Secure-by-Design pledge. This device is designed, built, and maintained, with advanced security as a core requirement.

What changes when a Function is added?

The _routes.json file determines which paths invoke Pages Functions through include and exclude patterns; exclusions take priority. That means a deployment change can alter whether the same URL reaches a Function or static asset handling, even if the URL itself has not changed. Cloudflare Pages Function routing documentation

For a Function that needs to serve a static asset, Cloudflare documents the ASSETS binding as the route to asset-serving behavior. Review both the routing rules and the Function’s fallback logic before concluding that an asset or static rule has stopped working. Cloudflare Pages Functions bindings documentation

Rank #2
Sale
TP-Link AC1200 WiFi Router Dual Band Wireless Internet Router (Archer A54)
  • Dual-band Wi-Fi with 5 GHz speeds up to 867 Mbps and 2.4 GHz speeds up to 300 Mbps, delivering 1200 Mbps of total bandwidth¹. Dual-band routers do not support 6 GHz. Performance varies by conditions, distance to devices, and obstacles such as walls.
  • Covers up to 1,000 sq. ft. with four external antennas for stable wireless connections and optimal coverage.
  • Supports IGMP Proxy/Snooping, Bridge and Tag VLAN to optimize IPTV streaming
  • Access Point Mode - Supports AP Mode to transform your wired connection into wireless network, an ideal wireless router for home
  • Advanced Security with WPA3 - The latest Wi-Fi security protocol, WPA3, brings new capabilities to improve cybersecurity in personal networks
  • At least one include rule is required.
  • There can be no more than 100 combined include and exclude rules.
  • Each rule is limited to 100 characters.

These are documented configuration limits, not measurements of a particular deployment.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How does static route handling depend on the deployed files?

Pages’ behavior for a path depends in part on the HTML files in the deployed output and whether a custom 404 page exists. A matching HTML file can serve a route, and Pages redirects certain HTML paths to extensionless counterparts—for example, /contact.html to /contact and /about/index.html to /about/. Cloudflare Pages serving pages documentation

Rank #3
NETGEAR Nighthawk WiFi 6 Router R6700AX, Up to 1,500 sq ft, 1.8 Gbps
  • NIGHTHAWK WIFI 6 ROUTER FOR YOUR WHOLE HOME: Delivers fast, reliable WiFi across every room of your apartment or small home for streaming, gaming, video calls, and smart home devices, all running at the same time without slowing each other down.
  • WORKS WITH YOUR EXISTING INTERNET SERVICE: Pairs with your existing modem or gateway via ethernet. Compatible with most cable, fiber, DSL, and satellite providers. Some gateways and modem router combos may require bridge mode. No coax needed.
  • SET UP AND MANAGE YOUR NETWORK WITH THE NIGHTHAWK APP: Download the free Nighthawk app on iOS or Android for guided setup. Manage WiFi, run speed tests, pause devices, and set up guest networks from anywhere. Active internet required.
  • READY FOR THE DEVICES YOU ALREADY OWN: Your phones, laptops, and TVs work right out of the box. WiFi 6 delivers speeds up to 1.8 Gbps across 2.4 GHz and 5 GHz bands. Backward compatible with WiFi 5 and earlier.
  • COVERAGE IN EVERY ROOM: Covers up to 1,500 sq. ft. for up to 20 connected devices. Walls, floors, and interference can reduce range. Larger or multi-story homes may benefit from a NETGEAR Orbi mesh WiFi system.

For single-page applications, Pages documents a default behavior that maps incoming paths to the root so the client-side app can handle routes such as /about or /help. A deployed 404.html changes not-found handling: Pages looks for the closest 404 page up the directory tree, ending at /404.html. As a result, a missing route can behave differently depending on whether the output includes a matching HTML file, an SPA entry point, or a custom 404 page. Cloudflare Pages serving pages documentation

How to isolate the cause of a surprising response

  1. Inspect the deployed output. Check whether the requested path has a matching HTML file, whether the app relies on SPA fallback, and whether a 404.html exists.
  2. Check Function routing. Review _routes.json to see whether the path is included or excluded. Remember that exclusions take priority.
  3. Determine who produced the response. Confirm whether the Function ran. If it did, do not expect static _redirects or _headers rules to govern its generated response.
  4. Test static rules separately. Compare a matching static asset request with a request handled by a Function. If the Function is intended to fall through, verify that the asset-serving fallback is actually used.
  5. Record response details. For each request, note the path, status, Location value, relevant headers, deployment conditions, and whether Function code ran. Test redirects and headers separately, then together.

This comparison distinguishes a rule that failed to match from one that matched a URL but did not apply to the response type. Cloudflare also documents that redirects run before headers, so a redirect takes priority when both static rule files match. Cloudflare Pages headers documentation

Rank #4
Sale
TP-Link Dual-Band BE3600 Wi-Fi 7 Router, Archer BE230
  • 𝐅𝐮𝐭𝐮𝐫𝐞-𝐏𝐫𝐨𝐨𝐟 𝐘𝐨𝐮𝐫 𝐇𝐨𝐦𝐞 𝐖𝐢𝐭𝐡 𝐖𝐢-𝐅𝐢 𝟕: Powered by Wi-Fi 7 technology, enjoy faster speeds with Multi-Link Operation, increased reliability with Multi-RUs, and more data capacity with 4K-QAM, delivering enhanced performance for all your devices.
  • 𝐁𝐄𝟑𝟔𝟎𝟎 𝐃𝐮𝐚𝐥-𝐁𝐚𝐧𝐝 𝐖𝐢-𝐅𝐢 𝟕 𝐑𝐨𝐮𝐭𝐞𝐫: Delivers up to 2882 Mbps (5 GHz), and 688 Mbps (2.4 GHz) speeds for 4K/8K streaming, AR/VR gaming & more. Dual-band routers do not support 6 GHz. Performance varies by conditions, distance, and obstacles like walls.
  • 𝐔𝐧𝐥𝐞𝐚𝐬𝐡 𝐌𝐮𝐥𝐭𝐢-𝐆𝐢𝐠 𝐒𝐩𝐞𝐞𝐝𝐬 𝐰𝐢𝐭𝐡 𝐃𝐮𝐚𝐥 𝟐.𝟓 𝐆𝐛𝐩𝐬 𝐏𝐨𝐫𝐭𝐬 𝐚𝐧𝐝 𝟑×𝟏𝐆𝐛𝐩𝐬 𝐋𝐀𝐍 𝐏𝐨𝐫𝐭𝐬: Maximize Gigabitplus internet with one 2.5G WAN/LAN port, one 2.5 Gbps LAN port, plus three additional 1 Gbps LAN ports. Break the 1G barrier for seamless, high-speed connectivity from the internet to multiple LAN devices for enhanced performance.
  • 𝐍𝐞𝐱𝐭-𝐆𝐞𝐧 𝟐.𝟎 𝐆𝐇𝐳 𝐐𝐮𝐚𝐝-𝐂𝐨𝐫𝐞 𝐏𝐫𝐨𝐜𝐞𝐬𝐬𝐨𝐫: Experience power and precision with a state-of-the-art processor that effortlessly manages high throughput. Eliminate lag and enjoy fast connections with minimal latency, even during heavy data transmissions.
  • 𝐂𝐨𝐯𝐞𝐫𝐚𝐠𝐞 𝐟𝐨𝐫 𝐄𝐯𝐞𝐫𝐲 𝐂𝐨𝐫𝐧𝐞𝐫 - Covers up to 2,000 sq. ft. for up to 60 devices at a time. 4 internal antennas and beamforming technology focus Wi-Fi signals toward hard-to-reach areas. Seamlessly connect phones, TVs, and gaming consoles.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How should you interpret repeat requests and cache results?

Cache validation is a separate behavior from route handling. Cloudflare says Pages sends an Etag header with 200 responses. A later request can include If-None-Match; if it matches, Pages can respond with 304 Not Modified, allowing the browser to use its cached copy. A 304 is not a redirect. Cloudflare Pages serving pages documentation

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Cloudflare describes a one-week asset-cache TTL per data center, but also says assets may disappear at any time. Treat the TTL as a cache-retention description, not a promise that an asset will remain cached for a full week. When comparing repeat requests, record the status, Etag, If-None-Match, deployment time, and requesting location or data center if available; separate data centers may not have identical cache histories. Cloudflare Pages serving pages documentation

Best Value
TP-Link AC1200 Gigabit Dual Band WiFi Router (Archer A6)
  • Dual band router upgrades to 1200 Mbps high speed internet (300mbps for 2.4GHz plus 900Mbps for 5GHz), reducing buffering and ideal for 4K stream
  • Full Gigabit Ports - Gigabit Router with 4 Gigabit LAN ports, ideal for any internet plan and allow you to directly connect your wired devices
  • Boosted Coverage - Four external antennas equipped with Beamforming technology extend and concentrate the Wi-Fi signals
  • MU-MIMO technology - (5GHz band) allows high speeds for multiple devices simultaneously
  • Access Point Mode - Supports AP Mode to transform your wired connection into wireless network, an ideal wireless router for home

What are the rule-file limits?

Cloudflare’s documentation lists these limits for Pages configuration files: redirect limits and header limits.

Configuration Documented limit
_redirects 2,000 static redirects and 100 dynamic redirects, with 2,100 combined per file
_headers 100 rules
_routes.json 100 combined include/exclude rules; each rule may contain up to 100 characters

These figures describe platform limits; they do not establish how any particular deployment responds.

Quick Recap

SaleBestseller No. 1
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
TP-Link AX1800 WiFi 6 Router (Archer AX21 V5)
VPN SERVER: Archer AX21 Supports both Open VPN Server and PPTP VPN Server
$59.98
SaleBestseller No. 2
TP-Link AC1200 WiFi Router Dual Band Wireless Internet Router (Archer A54)
TP-Link AC1200 WiFi Router Dual Band Wireless Internet Router (Archer A54)
Supports IGMP Proxy/Snooping, Bridge and Tag VLAN to optimize IPTV streaming
$29.99
Bestseller No. 5
TP-Link AC1200 Gigabit Dual Band WiFi Router (Archer A6)
TP-Link AC1200 Gigabit Dual Band WiFi Router (Archer A6)
MU-MIMO technology - (5GHz band) allows high speeds for multiple devices simultaneously
$44.99

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.