WordPress.org

Ready to get started?Download WordPress

Forums

Better WordPress Minify
[resolved] Add filter to provide access to Minify's serve() options (6 posts)

  1. scottconnerly
    Member
    Posted 1 year ago #

    ./bwp-minify/min/index.php

    Requesting you add a filter to $min_serveOptions so that I can set my own Expires headers (among others). The 2 hour default isn't the length I'd like.

    Otherwise, I'm a big fan of this plugin. Thank you for your contributions!

    Thanks,
    -Scott

    http://wordpress.org/extend/plugins/bwp-minify/

  2. scottconnerly
    Member
    Posted 1 year ago #

    Durrr. I just realized you just answered this in the last thread,

    http://wordpress.org/support/topic/plugin-better-wordpress-minify-maxage

    Thanks,
    -S

  3. scottconnerly
    Member
    Posted 1 year ago #

    After digesting that previous thread, I'm not satisfied with that resolution. It requires that I define('MINIFY_MIN_DIR') to something else. But when my code encounters your define('MINIFY_MIN_DIR'), it doesn't first check if MINIFY_MIN_DIR is previously defined. It will throw messages I don't want.

    My first request is that you add a filter to $min_serveOptions inside the if (isset($_GET['f'])).

  4. Khang Minh
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Scott,

    You do not have to define that CONSTANT, all you have to do is moving that min folder to a place you like, and edit the config.php file.

    Hope that helps.

  5. scottconnerly
    Member
    Posted 1 year ago #

    I don't understand what you mean by moving that folder. If I move the /min/ folder, I have to edit the plugin to indicate the new location of the folder. That edit will also be overwritten with plugin updates, like it was today.

    Could you please give me more detailed steps on how you see we could modify that maxAge value without losing upgradability?

    Thanks,
    -Scott

  6. Khang Minh
    Member
    Plugin Author

    Posted 1 year ago #

    You don't have to edit the plugin to indicate the new location of the folder, there's an option in the admin called Min URL.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic