mwrock/RequestReduce — pull request #174 by orand (2012-04-28 01:53:55+00:00)
Title: new config option IgnoreNearFutureJavascriptDisabled

Hi Matt, we've been running into undesired behavior with IE in our dev environment after flushing the RR cache. We typically do this after we make changes to our .js files. If the next developer's browser to hit the site is IE, it will use a stale cached copy of the non-RR'd .js file and not even do a conditional GET to find out it has changed. The staleness issue can be solved by setting Cache-Control: max-age="0", but that would cause RR to add the .js files to the ignored URLs list because the URLs expire in less than 7 days. So I added a new config option to allow us to ensure all .js files are processed by RR regardless of the expiration timespan. Now we can set max-age="0" so the first browser to hit a site after flushing the RR cache is guaranteed to get the most recent version of the .js files.

If there's anything else I can do to improve this pull request just let me know and I'd be glad to do it. Thanks for creating such a useful tool and making it available to the community!