2

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

3

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? – amateur barista Mar 30 '11 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 Mar 30 '11 at 17:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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