swift_performance_kept_headers

This filter will be applied on kept headers array before Swift Performance save them.

Parameters

$headers

array of kept headers

Return

array


Example

// Add custom header from kept headers
add_filter('swift_performance_kept_headers', function($headers){
	$headers['X-Custom-Header'] = 'set';
	return $headers;
});