Skip to content

Commit bd7f114

Browse files
committed
added cache-control to static assets
1 parent b67fdd2 commit bd7f114

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lambda/index.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
$mapped_type = $extension_map[$extension];
3636

3737
if ( $mapped_type && file_exists( $local_file_path ) ) {
38+
header("Cache-Control: public, max-age=3600;");
3839
header("Content-Type: {$mapped_type}");
3940
readfile($local_file_path);
4041
} elseif ( $extension == "php" && file_exists( $local_file_path ) ) {

0 commit comments

Comments
 (0)