When we are in ANY maintenance mode, we do not want to allow aggregation.
When the database is down and the site is in error maintenance mode, the error pages would be attempting to do aggregation without having any way to update the state, causing additional load. The fallback maintenance page does not have any business attempting to aggregate anyway.
This check for != update mode had originally been intended in #199946: Stale css+js files on upgrade to prevent both miscaching and exposing the drupal version, but it should have been taken out when the logic was changed to use an incrementing number.
You can see the original code that led to this in #199946-22: Stale css+js files on upgrade.
Comments
Comment #2
bdragon commentedComment #3
bdragon commentedComment #4
fabianx commentedRTBC - Looks great to me!
Comment #5
fabianx commentedComment #6
bdragon commentedchange record drafted @ https://www.drupal.org/node/3018664
Comment #7
heddnReviewed the CR. It looks good.
Comment #8
joseph.olstadThis is a smart change, thanks.
Comment #9
izmeez commentedPatch in #2 no longer applies. Attached is a quick re-roll.
Comment #10
mcdruid commentedLGTM
Comment #11
fabianx commentedRTBC + 1 again :) - this happened on a real site :)
Comment #13
mcdruid commentedThanks everybody!
Comment #15
quietone commentedPublished change record