Skip to content

Instantly share code, notes, and snippets.

{
"background-image": {
"2560x1400": {
"src": null,
"width": "2560",
"height": "1400"
}
},
"storysync-logo-image": {
"1000x178": {
var configuration = {
"background-image": {
"2560x1400": {
"src": "http:\/\/dev.john.do.com\/wp-content\/uploads\/2013\/09\/new-background.jpg",
"width": "2560",
"height": "1400"
}
},
// Image Size Not Yet DEFINED!!!!
@yoshito
yoshito / gist:5807570
Created June 18, 2013 17:38
Overriding WP No Cache Behavior
<?php
add_action('init', 'alter_wp_nocache_header');
function alter_wp_nocache_header() {
add_filter('nocache_headers', 'no_cache_with_cdn_headers');
}
function no_cache_with_cdn_headers($headers) {
if(!is_user_logged_in() && !is_admin()) {
$headers['Cache-Control'] = 'no-cache, must-revalidate, max-age=0, s-maxage=' . (60*60*24*7*8);
}
Hello World Gist Forked
function helloworld() {
echo 'hello world';
}