location ~ ^/cloudinary/(\d+)/(.*)$ {
expires max;
# ideally we should be serving the file from varnish cache, but in case it gets to here, go request it from cloudinary
rewrite ^/cloudinary/(\d+)/(.*)$ /pitchup-com/$2 break;
proxy_pass http://a$1.res.cloudinary.com;
proxy_pass_request_headers off;
}
# Prevent mobile network providers from modifying your site
add_header "Cache-Control" "no-transform";
# https://github.com/pagespeed/ngx_pagespeed
pagespeed on;
pagespeed FileCachePath /mnt/pagespeed; # Use tmpfs for best results.
pagespeed FileCacheSizeKb 12582912;
pagespeed FileCacheCleanIntervalMs 3600000;
pagespeed FileCacheInodeLimit 12374945; # 0.75 * max
pagespeed DownstreamCacheRebeaconingKey "<KEYREMOVED>";
pagespeed UseNativeFetcher on;
resolver 8.8.8.8;
pagespeed RespectXForwardedProto on;
pagespeed Disallow "*/page_view/";
pagespeed EnableFilters convert_to_webp_lossless;
pagespeed EnableFilters convert_jpeg_to_progressive;
pagespeed EnableFilters convert_jpeg_to_webp;
pagespeed EnableFilters insert_image_dimensions;
pagespeed EnableFilters remove_comments;
pagespeed EnableFilters collapse_whitespace;
pagespeed EnableFilters elide_attributes;
pagespeed EnableFilters rewrite_css;
pagespeed EnableFilters fallback_rewrite_css_urls;
pagespeed EnableFilters lazyload_images;
pagespeed EnableFilters insert_dns_prefetch;
pagespeed EnableFilters prioritize_critical_css;
pagespeed EnableFilters extend_cache;
pagespeed EnableFilters rewrite_javascript;
pagespeed EnableFilters rewrite_images;
pagespeed EnableFilters dedup_inlined_images;
pagespeed EnableFilters defer_javascript;
pagespeed EnableFilters inline_preview_images;
pagespeed EnableFilters resize_mobile_images;
pagespeed EnableFilters rewrite_domains;
pagespeed InlineResourcesWithoutExplicitAuthorization Script,Stylesheet;
include pagespeed_libraries.conf;
pagespeed EnableFilters canonicalize_javascript_libraries;
# yimg support
pagespeed UrlValuedAttribute yimg src image;
pagespeed FetchHttps enable,allow_self_signed;
pagespeed Domain www.pitchup.com;
pagespeed Domain m.pitchup.com;
pagespeed Domain *.pitchup.co.uk;
pagespeed Domain https://www.pitchup.com;
pagespeed Domain https://m.pitchup.com;
pagespeed Domain https://*.pitchup.co.uk;
pagespeed ShardDomain media.pitchup.co.uk media1.pitchup.co.uk,media2.pitchup.co.uk;
pagespeed MapOriginDomain "http://127.0.0.1" "https://m.pitchup.com" m.pitchup.com;
pagespeed MapOriginDomain "http://127.0.0.1" "https://www.pitchup.com" www.pitchup.com;
pagespeed MapOriginDomain "http://127.0.0.1" "https://media.pitchup.co.uk" media.pitchup.co.uk;
pagespeed LoadFromFile "https://www.pitchup.com/static/" "/mnt/ssd/django/pitchup_prod/pitchup/static/";
pagespeed LoadFromFile "https://m.pitchup.com/static/" "/mnt/ssd/django/pitchup_prod/pitchup/static/";
pagespeed LoadFromFile "https://media.pitchup.co.uk/" "/mnt/ssd/django/pitchup_prod/pitchup/static/";
pagespeed LoadFromFileRule Disallow "/mnt/ssd/django/pitchup_prod/pitchup/static/cloudinary";
pagespeed LoadFromFileRuleMatch Disallow "/mnt/ssd/django/pitchup_prod/pitchup/static/v.*";
> email to ngx-pagespeed-discuss+unsub...@googlegroups.com.
<img src="https://media1.staging.pitchup.co.uk/cloudinary/2/image/upload/t_primary_v2/v1368799724/corriefodly-holiday-park/corriefodly-holiday-park-two-bedroom-holiday-home-glen-clova-caravan-home-interior.jpg" pagespeed_url_hash="1957969592" data-pagespeed-onload="pagespeed.CriticalImages.checkImageForCriticality(this);" onload="var elem=this;if (this==window) elem=document.body;elem.setAttribute('data-pagespeed-loaded', 1)" data-pagespeed-loaded="1">
>> > email to ngx-pagespeed-discuss+unsub...@googlegroups.com.
>> > Visit this group at
>> > http://groups.google.com/group/ngx-pagespeed-discuss.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "ngx-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ngx-pagespeed-discuss+unsub...@googlegroups.com.
>> >> > email to ngx-pagespeed-discuss+unsub...@googlegroups.com.
>> >> > Visit this group at
>> >> > http://groups.google.com/group/ngx-pagespeed-discuss.
>> >> > For more options, visit https://groups.google.com/d/optout.
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "ngx-pagespeed-discuss" group.
>> > To unsubscribe from this group and stop receiving emails from it, send
>> > an
>> > email to ngx-pagespeed-discuss+unsub...@googlegroups.com.
>> > Visit this group at
>> > http://groups.google.com/group/ngx-pagespeed-discuss.
>> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to the Google Groups
> "ngx-pagespeed-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ngx-pagespeed-discuss+unsub...@googlegroups.com.