romanschejbal / gassetic

Assetic replacement based on the gulp build tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filename

jdeniau opened this issue · comments

Hi,

Sorry to bother you again ;)

I wonder why the given filename is not a filename but a repository name.
I understand the comportement when the files are not concat, but when they are, it is a little weird to have a filename like /js/global.js/global_a9c64ad2aa6e0e0e98b188a5a478640a.js

Thank you

It's for cache busting, especially with CDNs. A CDN would send far future expiry dates for generated assets which can only be broken by renaming the file (a lot of CDNs won't factor in query string busting). The gulp freeze plugin handles this.

Yeah, but I'll call it /js/global_a9c64ad2aa6e0e0e98b188a5a478640a.js directly

The subfolders are there because the concat/minify/freeze is still optional in the live environment. By bunching it into subfolders it makes sure that main.js in one plugin doesn't override another.