KNTH
KNTH
CDCloudflare Developers
Created by KNTH on 10/3/2024 in #workers-help
Static Assets on Workers, 404 not found
Hello, I am deploying a website to Workers. _routes.json looks good:
{
"version": 1,
"include": [
"/*"
],
"exclude": [
"/_astro/*",
"/android-chrome-192x192.png",
"/android-chrome-512x512.png",
"/apple-touch-icon.png",
"/favicon-16x16.png",
"/favicon-32x32.png",
"/favicon.ico"
]
}
{
"version": 1,
"include": [
"/*"
],
"exclude": [
"/_astro/*",
"/android-chrome-192x192.png",
"/android-chrome-512x512.png",
"/apple-touch-icon.png",
"/favicon-16x16.png",
"/favicon-32x32.png",
"/favicon.ico"
]
}
But then when I try to make some requests to the CSS, I get a 404 not found:
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (1ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (3ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon-32x32.png 200 OK (1ms)
[wrangler:inf] GET /favicon-32x32.png 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon-32x32.png 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon-32x32.png 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (1ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /_astro/_slug_.B8U6HK6z.css 404 Not Found (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (3ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon-32x32.png 200 OK (1ms)
[wrangler:inf] GET /favicon-32x32.png 304 Not Modified (2ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon-32x32.png 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (2ms)
[wrangler:inf] GET /favicon-32x32.png 304 Not Modified (1ms)
[wrangler:inf] GET /favicon.ico 304 Not Modified (1ms)
Other resources are fine. Is it because of filename format with underscore or something? Thank you!
6 replies