Cache not clearing when deploying

Website:

My index.html is not properly changing when I deploy a new change to the website. Everything else seems to be changing when I make a deployment.

I believe this is due to caching, since I have tried to comment out my index.html entirely and it is still not changing on deployment. I also have a custom Domain website, whose index.html is showing different results than the netlify deployment. (Everything else is aligned).

I have tried to use the “clear cache and redeploy” option, but the index.html is still showing up, despite me commenting it out.

What exactly is not changing?

Currently the index.html is blank.

The og: tags are not changing. For example, if I were to copy paste the link in a chat, the metadata still shows.

As mentioned, your site is currently blank (white screen) because the index.html is empty.

Are you deploying from git or using drag and drop?

I am deploying from git.

The index.html being empty is normal since I have everything commented out, but I am not understanding why the og: tags are still present if I copy paste the link and the preview shows.

@RevanthGundala Copy and paste the link to where exactly?

If it’s a social network, are you aware that their scrapers often cache the response they receive?

(E.g. They do not necessarily reach out to your site to retrieve the OG tags every time someone links to the URL).

1 Like

Ah, I see. I have been trying to copy paste the new link into a Telegram chat but the data was staying the same. I tried to manually clear the cache, but I guess they are still storing some information.
Thank you.

@RevanthGundala Here’s the first StackOverflow I could find related to Telegram:

1 Like