• Resolved snippet24

    (@snippet24)


    Hi Frank, is ti possible? If not, do you think is a good idea?

    Kind regards,

    Tomás

    • This topic was modified 8 months, 2 weeks ago by snippet24.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    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

    Thread Starter snippet24

    (@snippet24)

    Hi, and what about a resource that is not minified, and for which I need to preserve the original resource name..

    Regards,

    Tomás

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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? ??

    Thread Starter snippet24

    (@snippet24)

    Sure, yeah it seems they aren’t as far as I can tell after excluding a CSS.

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    super! ??

    Thread Starter snippet24

    (@snippet24)

    But isn’t that the problem? I want to minify assets while keeping their original names…

    • This reply was modified 8 months, 2 weeks ago by snippet24.
    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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.

    Thread Starter snippet24

    (@snippet24)

    I see, and I assume is not feasible in the future neither ??

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    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).

    Thread Starter snippet24

    (@snippet24)

    Ahh I understand, thanks for explaining! clear as crystal ??

    Kind Regards

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Preserve CSS / JS resource Names?’ is closed to new replies.