Generate CSS/JS files on request (async mode) is disabled. I am using fast 404 and have this in the settings.php:

// List of extensions for static files
$exts = 'txt|png|gif|jpe?g|shtml?|css|js|ico|swf|flv|cgi|bat|pl|dll|exe';

// It is not an imagecache path, which we allow to go through Drupal
if (!strpos($_SERVER['QUERY_STRING'], 'imagecache') && !strpos($_SERVER['QUERY_STRING'], '/advagg_')) {
  // It is not our main feed page
  if ($_SERVER['QUERY_STRING'] != 'rss.xml') {
    // Is it a static file? 
    if (preg_match('/\.(' . $exts . ')$/', $_SERVER['QUERY_STRING']))
      // Just send a 404 right now ...
    {
      header('HTTP/1.0 404 Not Found');
      print '<html>';
      print '<head><title>404 Not Found</title></head>';
      print '<body><h1>Not Found</h1>';
      print '<p>The requested URL was not found on this server.</p>';
      print '</body></html>';
      exit();
    }
  }
}

I tried flushing cache...

Comments

meba’s picture

OK, this is crazy. We are using Domain Access and it worked from a different domain.

mikeytown2’s picture

Status: Active » Postponed (maintainer needs more info)

any other info you can think of to help debug this?

meba’s picture

We have a site using boost + domain access module. It didn't work from one of the domains but worked from the other.

mikeytown2’s picture

same setup as me. Any path prefixing or i18n?

mikeytown2’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

going to mark this closed; have a feeling this got fixed in one of the many commits I did.

_-.’s picture

Status: Closed (cannot reproduce) » Active

i've installed advagg 6.x-1.x-dev.

with either fast404's turned on, with the config exactly as above in the OP, or fast404's uninstalled/disabled, i'm unable to select/toggle the 'Generate CSS/JS files on request (async mode)' option. it's off and unavailable.

iiuc, i've no specific path prefixing or i18n enabled.

mikeytown2’s picture

Status: Active » Closed (duplicate)

going to mark this as a dup of this issue #1132878: Can't enable async mode with open atrium - Add in html comment to fast404 & check for that as well
Trying to keep similar issues in the same issue

Michsk’s picture

This can also have something to do if you block all ip's except your own (for development for example). This is what was the issue for me. After commenting out the htaccess rule and allowing every ip, async mode was enabled and i could turn it on.

shunting’s picture

In the D7 version, the PHP code above worked for me to get async going (and files compressing) when I pasted it at the end of settings.php.

I tried enabling the Fast 404 in settings.php as the comments suggest, that that did not enable async. So I commented them out again, pasted in the material above (even if it does come from the D6 era) and everything worked and CSS and JS are now being compressed!