Redirect running despite shadowed file existing in deploying

I have a problem that even though the file exists on disk. Netlify is still routing to my serverless function



# More info on configuring this file:
# Global configuration
  publish = "dist"
  command = "yarn now-build"
  functions = "serverless-dist/functions"
  ignore = "git diff --quiet HEAD^ HEAD ./"

# Development environment
  port = 4200 # Port that the dev server will be listening on
  publish = "dist" # Folder with the static content for _redirect file
  command = "yarn start" # Command to start your dev server (npm scripts)

# Post processing files
  skip_processing = false
  bundle = false # Breaks Auth0
  minify = true
  bundle = true
  minify = true
  pretty_urls = true
  compress = true

## Uncomment to use this redirect for APIs to netlify functions.
## Not needed for static site generators.
  status = 200
  force = true
  from = "/api/*"
  to = "/.netlify/functions/api/:splat"

## Uncomment for redirect to fastboot
  status = 200
  force = false
  from = "/*"
  to = "/.netlify/functions/fastboot/:splat"

## Uncomment to use this redirect for Single Page Applications like create-react-app.
## Not needed for static site generators.
  status = 200
  force = false
  from = "/*"
  to = "/index.html"

## Cache Control Headers
  for = "/api/*"
    Cache-Control = "public, max-age=300, s-maxage=600, stale-while-revalidate"

  for = "/*"
    Cache-Control = "public, max-age=86400, s-maxage=86400, stale-while-revalidate"

Hi, @devotox. We’re happy to troubleshoot why this is happening. To do this, we’ll need to identify an HTTP request which was routed to the Function when the file was present.

The more direct way to do this is to send us the x-nf-request-id header which we include with every HTTP response.

There more information about this header here:

If that header isn’t available for any reason, please send the information it replaces (or as many of these details as possible). Those details are:

  • the complete URL requested
  • the IP address for the system making the request
  • the IP address for the CDN node that responded
  • the day of the request
  • the time of the request
  • the timezone the time is in

Would you please send us this header or the other details and we’ll be happy to research this further?

@luke Here is a request dump as you can see It is attempting to get a file from the assets directory through the function while this should be available on disk

    "level": "info",
    "time": 1581686334283,
    "pid": 8,
    "hostname": "",
    "message": "Fastboot Visit",
    "hashedKey": "e7fad4f83ae6d9b9cdfda9e76201847825a54bdd",
    "cacheHit": false,
    "request": {
        "url": "/assets/zenunu-c8eb44e8c48167ea6d4f84a8e55c9c7f.js",
        "host": "",
        "port": 80,
        "path": "/assets/zenunu-c8eb44e8c48167ea6d4f84a8e55c9c7f.js",
        "method": "GET",
        "protocol": "https",
        "location": "",
        "headers": {
            "accept": "*/*",
            "accept-encoding": "br, gzip",
            "accept-language": "en-US,en;q=0.9",
            "client-ip": "",
            "connection": "keep-alive",
            "cookie": "ember_simple_auth-session=%7B%22authenticated%22%3A%7B%7D%7D; ember_simple_auth-session-expiration_time=86400",
            "referer": "",
            "sec-fetch-mode": "no-cors",
            "sec-fetch-site": "same-origin",
            "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36",
            "via": "https/2 Netlify[e10e78c7-0174-4ddc-ada3-8bae7f8a7f83] (ApacheTrafficServer/7.1.8)",
            "x-bb-ab": "0.226852",
            "x-bb-client-request-uuid": "e10e78c7-0174-4ddc-ada3-8bae7f8a7f83-6676795",
            "x-bb-ip": "",
            "x-bb-loop": "1",
            "x-cdn-domain": "",
            "x-country": "GB",
            "x-datadog-parent-id": "5781150176488674814",
            "x-datadog-sampling-priority": "0",
            "x-datadog-trace-id": "8327508323675804903",
            "x-forwarded-for": "",
            "x-forwarded-proto": "https",
            "x-language": "en,en;q=0.9",
            "x-nf-client-connection-ip": "",
            "x-apigateway-event": "%7B%22path%22%3A%22%2Fassets%2Fzenunu-c8eb44e8c48167ea6d4f84a8e55c9c7f.js%22%2C%22httpMethod%22%3A%22GET%22%2C%22headers%22%3A%7B%22accept%22%3A%22*%2F*%22%2C%22accept-encoding%22%3A%22br%2C%20gzip%22%2C%22accept-language%22%3A%22en-US%2Cen%3Bq%3D0.9%22%2C%22client-ip%22%3A%2290",
            "x-apigateway-context": "%7B%22callbackWaitsForEmptyEventLoop%22%3Afalse%2C%22functionVersion%22%3A%22%24LATEST%22%2C%22functionName%22%3A%22df3c3b2f5bde88b6c40ceec083166a7ceb164e7ee08dd304aebcef292665419b%22%2C%22memoryLimitInMB%22%3A%221024%22%2C%22logGroupName%22%3A%22%2Faws%2Flambda%2Fdf3c3b2f5bde88b6c40ceec083166a7ceb164e7ee08dd304aebcef292665419b%22%2C%22logStreamName%22%3A%222020%2F02%2F14%2F%5B%24LATEST%5D0cff87e952054e5f9795fa19387195fc%22%2C%22clientContext%22%3A%7B%22custom%22%3A%7B%22netlify%22%3A%22eyJzaXRlX3VybCI6Imh0dHBzOi8vemVudW51Lm5ldGxpZnkuY29tIn0%3D%22%7D%7D%2C%22invokedFunctionArn%22%3A%22arn%3Aaws%3Alambda%3Aus-east-1%3A622137718745%3Afunction%3Adf3c3b2f5bde88b6c40ceec083166a7ceb164e7ee08dd304aebcef292665419b%22%2C%22awsRequestId%22%3A%22d60af3c4-0511-41c8-93d9-f5b85692b0de%22%7D",
            "host": "",
            "content-length": "0",
            "x-forwarded-host": "",
            "location": ""
    "response": {
        "_headers": {}
    "v": 1,
    "environment": "production",
    "label": "zenunu",
    "timestamp": "2020-02-14T13:18:54.283Z"
1 Like

Hello devotox!
I have seen you post against the process to run leverge browser cache for static assets, browser cookie and http headers.
I am working on a website, that has built up before 4 years in bootstrap 3 free responsive HTML template.

As of now trend has been changed, bootstrap 4 I in current trend and that too be using serverless, cdn for running, minifying, compressing and inlining css, jQuery and js files offered by maxbootstrapcdn, stackpath, angular, ajax, clouldflare etc…

I wanted to know how can I migrate my website from bootstrap3 to bootstrap 4 using above mentioned server less cdn urls. I am not a web developer, I am a beginner, who can upload the website files. Editing and changing, text, images and some other onpage seo related work.

And also let me know the way to use the functions for assigning cache , cookies get and response headers.

If you can help me, than please let me know the way to do it without paying. My website I and and you can email me also with the positive response at

With Regards
Akshita Patel

@devotox, it seem like this might be a bug. We’ll file an issue on this. We’ll update here if and when we have a fix out for it.

@Akshita_Patel, since you post is unrelated to this thread, please create a separate post by clicking the ‘new topic’ button on the main page:

Hi @devotox, I’ve made a change to how your site’s redirects work. Can you check if your redirect rules work now?

Was this made in the settings somewhere that I can see or in the netlify.toml? I ask because now that I have been able to look at this my site as automatically deployed at least 3 times (wooo robots ay)

At the moment with the latest deploy I still have the same problem but like I said many deploys have happened since your message

Can you tell me which urls are still getting redirected? Since your build seems to change all your filenames, I recommend also taking a look at the post about making the most of our CDN cache

Anything in the /assets/ directory

Filenames are changed depending on md5 hashes. This will slow down when development slows down