I’ve used SvelteKit recently and love how it automatically caches the images to the browser and tracks the changes in a smart way. I think Galaxy can have a similar feature. For example, it can automatically drop in a bit of code like this:
import { WebApp } from 'meteor/webapp';
WebApp.rawConnectHandlers.use((req, res, next) => {
if (/\.(jpg|jpeg|png|gif)$/.test(req.url)) {
res.setHeader('Cache-Control', 'public, max-age=31536000'); // Cache for 1 year
}
next();
});
And then it can add a query param to each image, or something of that nature, i.e.:
https://www.meteor.com/logo.png?buildNumber=46
That way, the app doesn’t re-download all the static assets on every load