Reviewing My nginx and Cloudflare Settings Cut Cloud Run Data Transfer Costs by 96%
In my previous post, [2026-11-03-1] , I reworked how I deploy to Cloud Run. This is a follow-up. As the title says, reviewing my nginx and Cloudflare settings cut my Cloud Run data transfer costs by 96%. Combined with the Artifact Registry savings from the previous post, my Google Cloud bill, which had been over ¥1,000 a month for about a year, came to ¥72 in October. Why I Looked at the Bill…
After reviewing the Google Cloud bill, the author discovered that the data transfer costs were primarily due to Cloud Run and Artifact Registry Storage. Upon further investigation, they found that nearly all of the data transfer was from the /index.xml feed for RSS readers, which weighed about 5.4 MB and accounted for over 90% of the transfer.
The author then enabled gzip compression on nginx, which significantly reduced the uncompressed data transfer between Cloud Run and Cloudflare. This change reduced the data transfer by 98%, bringing the overall Cloud Run data transfer costs down by 96%. Additionally, the author set up caching rules on Cloudflare to cache HTML and /index.xml files, further reducing the data transfer costs.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.