• WP asset cleanup seem to remove query strings form files even if excluded as they are alreayd min.js or min.css files?

    Will cause issues with version control if wp asset cleanup ingonres to burst them but also remove the query strings.

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have the same issue.

    Plugin Author Gabe Livan

    (@gabelivan)

    @zad97 @zad97 there used to be problems with appending /?ver to scripts that had the “ver” parameter set to false (e.g. external ones that didn’t need any query strings appended to them, and if they had a query string, it would have returned in an error). However, this has been fixed a long time ago.

    I’m not aware of any query strings being stripped from the files ending in .min.css or .min.js. I agree that the “ver” should not be removed if it’s not encoded in the cached version of the file, which is happening with files that are stored in /wp-content/cache/asset-cleanup/

    I’d like more information about it. Are there specific files where you noticed this behavior? Or is it happening for any already minified files?

    Plugin Author Gabe Livan

    (@gabelivan)

    @zad97 @alriksson I made a few tests using both Lite and Pro versions and I couldn’t recreate this issue. I’ve enabled minify CSS/JS and already minified files were kept as they are without any query string stripping. If you can make me some print screens, that would be great. Perhaps the problem is from a different plugin that you’re using. For instance, SG Optimizer has the feature of removing query strings from static resources.

    Thread Starter Rookie

    (@alriksson)

    Using wp rocket which nolonger have this option. And ocne I disable WPACU the version control is back.

    Using https://github.com/srikat/my-custom-functionality to enqueue stylesheets and scripts. Please try this and see if there might be a conflict there.

    Thread Starter Rookie

    (@alriksson)

    @gabelivan Did you manage to test and find the issue?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Query string removla bug?’ is closed to new replies.