You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to serve assets using this crate, but I've noticed the server does not send an Etag. This would cause the client to request the asset every time it's referenced (so, on every page load).
The express framework is sending an etag on static mounts, the client would memorize this and include it in future requests, if the server notices the file hasn't changed, it's sending back an 304.
Activity
vmchale commentedon May 22, 2017
If you add
to your Cargo.toml, it will enable caching.
vmchale commentedon May 22, 2017
Here is an example:
Hoverbear commentedon May 22, 2017
Perhaps we should add some documentation of this!