Deleted files are still served?

Within my build script, I’m deleting some files at the end, but those files are somehow still accessible. Is there a workaround?

Turns out Render keeps public artifacts from previous builds in the cache (which is nice).

I’ve opened a feature request to let us inspect the cache and selectively invalidate files:

1 Like

Hi Alec,

Thanks for working with me to resolve this issue. Sharing some more details here.

Render holds on to past assets for static sites so that clients that don’t have the latest version can continue operating properly.

In this case, files that were deleted were present in a past deploy and hence it looked like deleted files were still accessible.

1 Like

When the deleted asset represents a product no longer for sale, this can be very problematic. We definitely need more transparency and control over this feature.

1 Like

2nd this.

Very bad thing to do. Deleted is deleted.