PromucFlow_constructor/deploy
Shrikant Sharat Kandula 689d29065a
fix: Incorrect status code for missing static files (#29374)
I think the route precedence in Caddy is different when using `handle`
directive, vs when directly using the `error` directive.

This is causing the file `handle {` route, which is a catch-all route is
handling `/static/*` requests that don't have a corresponding file. This
handler however, doesn't respond with 404 status, it responds with 200
status for missing files, and render the `index.html` for our SPA
behaviour.

Now, the CDN we have on release.app.appsmith.com caches responses from
upstream when the status is 200. If it is 404, it won't cache and retry
next time. This is why it's essential that we respond with 404 for files
that don't exist, irrespective of the content of the response.

When the container is starting up, Caddy doesn't have all the
information yet, and may have responded with not-found for one of the
assets. But since this went out with 200 status, our CDN cached it, and
once the file _was_ available with Caddy, the CDN wouldn't retry ever.

This fix will ensure we get 404 status code for requests to `/static/*`
that point to files that don't exist.
2023-12-06 14:42:25 +05:30
..
ansible fix: issue with ansible deployment (#19974) 2023-01-25 10:45:04 +05:30
aws
aws_ami fix: Change watchtower to latest (#20001) 2023-02-02 06:27:35 +05:30
digital_ocean Packer script to build AWS and DigitalOcean images (#16617) 2022-09-14 11:03:02 +05:30
docker fix: Incorrect status code for missing static files (#29374) 2023-12-06 14:42:25 +05:30
helm fix appsmith-ce helm chart (#28523) 2023-10-31 16:57:06 +05:30
heroku chore: Replaced versioned URLs with new ones (#27798) 2023-10-05 12:07:59 +05:30
packer Packer script to build AWS and DigitalOcean images (#16617) 2022-09-14 11:03:02 +05:30