'What's the difference in serving file through express and through public html folder?

What's the difference between those two:

Public video file headers

and

nestjs/express headers

First file is put in public html folder I've checked it's headers and as can I see:

Content-Type, Content-Length, Connection, Accept-Ranges are the same.

But... for file put in html folder I can use it's link for twitter's card and i can see video preview, and for file returned by nestjs backend it's not shown there.

Both pages got their required meta tags and are served over https.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source