if you’re not aggregating and if the resources names end in .min.css or .min.js AO will not change the name as it considers those files minified already.
hope this clarifies,
frank
Hi, and what about a resource that is not minified, and for which I need to preserve the original resource name..
Regards,
Tomás
I should check the code to make sure, but I *think* excluded resources are not minified when you’re not aggregating. Maybe give that a go? 🙂
Sure, yeah it seems they aren’t as far as I can tell after excluding a CSS.
But isn’t that the problem? I want to minify assets while keeping their original names…
-
This reply was modified 2 years, 2 months ago by
snippet24.
that AO cannot do I’m afraid Tomás: either the file is minified and it keeps it’s name or it is not minified and AO minifies it and it’s cached as an autoptimize_xyz124.css (or .js) file.
I see, and I assume is not feasible in the future neither 🙁
afraid not no, the entire logic to cache optimized JS/ CSS and adding a hash to the filename is core to how AO works (the hash is based on the contents of the unminified file and allows AO to *know* if a file in cache can be used or that a new file needs to be created).
Ahh I understand, thanks for explaining! clear as crystal 🙂
Kind Regards