Server is serving old versions of static files, but trimmed or padded to match length of new versions

前端 未结 2 1103
忘了有多久
忘了有多久 2020-12-17 17:22

The symptoms of my problem match this question pretty much exactly: Changed static files are cropped/padded to the new size and served the old - Fedora

Whenever I ma

相关标签:
2条回答
  • 2020-12-17 18:02

    In the end it turned out that this was probably being caused by VM issues. The code in question was located on a Windows drive, but was being served from within a Linux VM that was accessing the code via a shared directory. Remounting the share seemed to fix the problem (although not necessarily reliably).

    0 讨论(0)
  • 2020-12-17 18:22

    Virtualbox hates sendfile. If you turn it off it should work.

    For example in nginx you would need to add sendfile: off;. In Apache it's just EnableSendfile off.

    0 讨论(0)
提交回复
热议问题