November 20, 2015
When managing a Pull Zone, there’s a tab called Settings, and in this tab there are some extra options which can be utilized to get the best out of your Pull Zone.
Origin IP Resolution
This option will allow you to manually define the IP behind which your Website or application is located. Note that in case that your origin server is behind a dynamic IP, this option should be disabled so we can query DNS for current origin server IP address from where we suppose to cache your content.
Set Default Cache Time
This option is meant to set a default expiry time/TTL in case the origin does not have one.
Override Cache-Control Header
Should you require a longer TTL or to override the one set on the origin, this is the option for you.
This option needs to be enabled at all times, with the exception of if the origin server already has GZip turned on, or if your application requires GZip to be turned off.
When enabled, this option will treat each file with Query Strings (e.g. “file.css?v=183791028301”) as a separate cacheable file.
This will set the Content-Disposition header for every file in this zone, forcing all files to behave as if the end-user chose the “save as” dialog.
Strip All Cookies
This option is extremely useful as it tells the CDN to ignore all cookies (e.g. session cookies set by CloudFlare).
This option needs to be enabled if you want to serve some media files (flv and mp4 ONLY with h.264 encoding) via your Pull Zone. Please note that first request to a non-cached big-size media file will be slow.
Serve expired content while retrieving updated content or when the origin server is no longer available. In other words, cached files on the CDN will be served even if the origin server is down. Use with extreme caution.
Ignore Cache Control:
Ignore any TTL/Expiry header set on the origin and instead use the settings in the Cache Settings tab.
The X-Forwarded-For (XFF) HTTP header field is a de facto standard for identifying the originating IP address of a client connecting to a web server through an HTTP proxy (e.g. MaxCDN).
Check out some use case examples.
Raw Log Storage
This option will allow you to store your logs to S3 bucket on regular basis. You can use following strings for log format:
bytes, cache_status, client_asn, client_city, client_continent, client_country, client_ip, client_latitude, client_longitude, client_state, hostname, method, pop, protocol, query_string, referer, scheme, status, time, uri, user_agent
Follow this tutorial to enable and configure backing up raw logs to S3 bucket.