JavaScript asset responses have been updated to use the text/javascript Content-Type header instead of application/javascript . While both MIME types are widely supported by browsers, the HTML Living Standard explicitly recommends text/javascript as the preferred type going forward. This change improves: Standards a...
Workers - Content type returned in Workers Assets for Javascript files is now `text/javascript`
Cloudflare Developer Platform Changelog · 2025-08-25
Related items
Workers - Workers now supports JavaScript debug terminals in VSCode, Cursor and Windsurf IDEs
Workers now support breakpoint debugging using VSCode's built-in JavaScript Debug Terminals . All you have to do is open a JS debug terminal ( Cmd + Shift + P and then type javascript debug ) and run wrangler dev (or vite dev ) from within the debug terminal. VSCode will automatically connect to your running Worker...
Workers for Platforms - Workers for Platforms now supports Static Assets
Workers for Platforms customers can now attach static assets (HTML, CSS, JavaScript, images) directly to User Workers, removing the need to host separate infrastructure to serve the assets. This allows your platform to serve entire front-end applications from Cloudflare's global edge, utilizing caching for fast load...
Workers - `wrangler types` now generates types for all environments
The wrangler types command now generates TypeScript types for bindings from all environments defined in your Wrangler configuration file by default. Previously, wrangler types only generated types for bindings in the top-level configuration (or a single environment when using the --env flag). This meant that if you...
Workflows, Workers - Workflow steps now expose retry attempt number via step context
Cloudflare Workflows allows you to configure specific retry logic for each step in your workflow execution. Now, you can access which retry attempt is currently executing for calls to step.do() : await step . do ( "my-step" , async ( ctx ) = { // ctx.attempt is 1 on first try, 2 on first retry, etc. console . log (...
Workers - Use the latest JavaScript features with Wrangler CLI v4.0.0-rc.0
We've released a release candidate of the next major version of Wrangler , the CLI for Cloudflare Workers — wrangler@4.0.0-rc.0 . You can run the following command to install it and be one of the first to try it out: npm i wrangler@v4-rc yarn add wrangler@v4-rc pnpm add wrangler@v4-rc bun add wrangler@v4-rc Unlike p...
Workers - Use the latest JavaScript features with Wrangler CLI v4
We've released the next major version of Wrangler , the CLI for Cloudflare Workers — wrangler@4.0.0 . Wrangler v4 is a major release focused on updates to underlying systems and dependencies, along with improvements to keep Wrangler commands consistent and clear. You can run the following command to install it in yo...