Skip to content

Commit

Permalink
Add edge-cache header when uncached as well
Browse files Browse the repository at this point in the history
  • Loading branch information
haqadn committed Dec 13, 2024
1 parent 39f4645 commit ff3f8e0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions projects/plugins/boost/app/lib/minify/functions-service.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ function jetpack_boost_page_optimize_service_request() {
foreach ( $headers as $header ) {
header( $header );
}
// Check if we're on Atomic and take advantage of the Atomic Edge Cache.
if ( defined( 'ATOMIC_CLIENT_ID' ) ) {
header( 'A8c-Edge-Cache: cache' );
}
header( 'X-Page-Optimize: uncached' );
header( 'Cache-Control: max-age=' . 31536000 );
header( 'ETag: "' . md5( $content ) . '"' );
Expand Down

0 comments on commit ff3f8e0

Please sign in to comment.