Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

The mtime of CSS packages does not consider embedded paths #191

Open
mitio opened this Issue · 0 comments

1 participant

@mitio

When creating packages from CSS files, the mtime of the resulting file is set to the latest mtime of all files included in the package (plus the mtime of the Jammit config).

However, this does not take into account the mtimes of eventual embedded media files in the aforementioned CSS. If, for example, one updates an embedded image, the mtime of the resulting CSS package will not be changed properly and although the packaged CSS content changes, the mtime of the package will not reflect this change. Thus, the updated embedded image may not show up properly due to it being cached and referenced with an old ?<mtime> value.

As for a solution — I would not vote for removing this "latest mtime" feature. Instead, I would rather have a change in the packager implemented so that the compressor can tell what is the "latest mtime" of a given package/file, because the compressor knows how to check the mtimes of embedded assets.

In my opinion (and in some of our usecases), this is a must-have feature, because we generate and pre-cache packages (incl. CSS ones) at deploy time and removing it will mean that on each deploy our entire cache will get invalidated, which seems wasteful (esp. if you deploy often).

See here for details: d706038#commitcomment-482474

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.