/**
* The time of the last change to the data or metadata of the file system
* object.
*
* On Windows platforms, this is instead the file creation time.
*/
I'm not sure why it has this behaviour on Windows, but there's another field called modified that doesn't contain this text, so perhaps that one should be used instead?
On Windows, updating the file on disk and reloading in the browser returns a "Not modified" header, so stale content is shown.
I believe the cause is the user of
stat.changed
here:https://github.com/dart-lang/shelf_static/blob/fb4506e7485e4ff7a3b97dfae3f6e02215e64782/lib/src/static_handler.dart#L185
The comment on
stat.changed
says:I'm not sure why it has this behaviour on Windows, but there's another field called
modified
that doesn't contain this text, so perhaps that one should be used instead?