Does the whole Drupal stack get fired up (bootstrapped) each time one of these static content types gets requested?

1 Answer 1


Nope, it does not. But if you have let's say in one of your stylesheet files a reference to a missing image, or your code is trying to load a missing js file then because of the Rewrite Rules in .htaccess this requests are redirected to index.php and that causes the bootstrapping of the whole system to render the 404 page.

  • How does Drupal knows the difference between a dynamic page request and a static resource request? Commented Mar 30, 2011 at 15:51
  • 2
    Apache is the one who knows the difference via rules in the .htaccess file. If you are getting a lot of 404s for CSS/JS files might I recommend the advagg module.
    – mikeytown2
    Commented Mar 30, 2011 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.