Skip to content

Commit

Permalink
Don't cache status_config.php when it's not populated
Browse files Browse the repository at this point in the history
When the dynamic css file `status_config.php` can't be generated, force
a no-caching header to avoid the client caching a wrong version of this
file.

Fixes #24189
  • Loading branch information
cproensa authored and dregad committed Jul 15, 2019
1 parent ea39593 commit aff0ea9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions css/status_config.php
Expand Up @@ -75,6 +75,7 @@

if( $t_referer_page == auth_login_page() ) {
# custom status colors not needed.
http_caching_headers( false );
exit;
}

Expand All @@ -86,6 +87,7 @@
case 'account_update.php':
# We don't need custom status colors on login page, and this is
# actually causing an error since we're not authenticated yet.
http_caching_headers( false );
exit;
}

Expand Down

0 comments on commit aff0ea9

Please sign in to comment.