Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function no_cache_meta_homepage() {
- if ( is_front_page() || is_home() ) {
- echo '<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">' . "\n";
- echo '<meta http-equiv="Pragma" content="no-cache">' . "\n";
- echo '<meta http-equiv="Expires" content="0">' . "\n";
- }
- }
- add_action( 'wp_head', 'no_cache_meta_homepage' );
Advertisement
Add Comment
Please, Sign In to add comment