Fastly

Fastly

Wordpress plugin

Install on Wordpress

App Details

Installation:

You can either install from source (you\’re looking at it), or from the WordPress plugin directory.

  1. To proceed with configuration you will need to sign up for Fastly and create and activate a new service (unless you already have one). Details of how to create and activate a new service can be found here. You will also need to find your Service ID and make a note of the string.
  2. You will need to create an API token with the Global API access option selected. Click here for token management screen.
  3. Set up the Fastly plugin inside your WordPress admin panel
  4. In your WordPress blog admin panel, Under Fastly->General, enter & save your Fastly API token and Service ID
  5. Verify connection by pressing TEST CONNECTION button.
  6. In order to get the most value out of Fastly we recommend you upload VCL snippets from https://github.com/fastly/WordPress-Plugin/tree/master/vcl_snippets. These snippets will add code for following

– Force certain paths to be passed (not cached) e.g. wp-admin, wp-login.php
– Makes sure that logged in user sessions are never cached
– Handling for serving stale on error

You can upload them by hand or press Update VCL button in the UI.

For more information, or if you have any problems, please email us.

Note: you may have to disable other caching plugins like W3TotalCache or WP Rocket to avoid getting odd cache behaviour.

  • Pulls in the Fastly API
  • Integrates purging in post/page/taxonomies publishing
  • Includes an admin panel in wp-admin
  • Integrates some of the advanced purging options from Fastly API
  • Allows to monitor purging using webhooks for slack

Using this plugin means you won’t have to purge content in Fastly when you make changes to your WordPress content. Purges will automatically happen with no need for manual intervention.

Customization

Edge Modules

Edge Modules are a framework that enables specific functions to be enabled on Fastly Edge without
the need to write VCL. Current list of functions that can be included includes

  • Enable Blackfire metrics and tracing
  • Set CORS headers
  • Enable support for bot detection partners such as Datadome/Netacea
  • Redirect one domain to another e.g. domain.com => www.domain.com
  • Rewrite URLs going to a backend e.g. /sitemap.xml => /media/sitemap.xml
  • Domain masking an external backend/origin

More details can be found at https://github.com/fastly/WordPress-Plugin/blob/master/EDGE-MODULES.md

Image optimization

Image Optimization is a separately contracted feature. Please contact [email protected] to request
pricing and activation.

Once activated on service level, you will be able to enable it in your blog under Fastly->Advanced.

Breakdown of IO options:
Enable Image Optimization in Fastly configuration – Activating this uploads VCL that steers image traffic to the image optimization service

Enable Image Optimization in WordPress - Main switch to activate IO which is needed for all other options to work. Enable adaptive pixel ratios - Switch for adaptive pixel ratios implementation. This replaces adaptive pixels srcset to format which Fastly IO can parse and replace. Initially works only on inserted attachments like featured images, but can be applied on content images if enabled. Adaptive pixel ratio sizes - Select pixel ratios that will be generated when creating image srcset html. Enable image optimization for content images - Safe switch for Image optimization of content images (due to difference from featured images, those are processed differently). To fully utilize, insert full size images in content. 

WordPress Hooks

Available wordpress hooks (add_action) on:

Editing purging keys output
purgely_pre_send_keys
purgely_post_send_keys
functions: add_keys

Editing surrogate control headers output(max-age, stale-while-revalidate, stale-if-error)
purgely_pre_send_surrogate_control
purgely_post_send_surrogate_control
functions: edit_headers, unset_headers

Edit cache control headers output (max-age)
purgely_pre_send_cache_control
purgely_post_send_cache_control
functions: edit_headers, unset_headers

Example:
add_action(\’purgely_pre_send_surrogate_control\’, \’custom_headers_edit\’);
function custom_headers_edit($header_object)
{
$header_object->edit_headers(array(\’custom-header\’ => \’555\’, \’max-age\’ => \’99\’));
}

add_action(\’purgely_pre_send_keys\’, \’custom_surrogate_keys\’);
function custom_surrogate_keys($keys_object) {
$keys_object->add_key(\’custom-key\’);
}

Note: you may have to disable other caching plugins like W3TotalCache to avoid getting odd cache behaviour.

About Fastly

Fastly is the only real-time content delivery network designed to seamlessly integrate with your development stack.

Fastly provides real-time updating of content and the ability to cache dynamic as well as static content. For any content that is truly uncacheable, we’ll accelerate it.

In addition we allow you to update your configuration in seconds, provide real time log and stats streaming, powerful edge scripting capabilities, and TLS termination (amongst many other features).

License

Fastly.com WordPress Plugin
Copyright (C) 2011,2012,2013,2014,2015,2016,2017 Fastly.com

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.

Pricing

Starting from $0 per month.

Check Out the HIPAA Compliance Forms Widget

By Common Ninja

HIPAA Compliance FormsTry For Free!

App Info

Rating

Reviewers

1 reviews

Tags

cdn
fastly
performance
speed

Developed By

Fastly

Quick & Easy

Find the Best Wordpress plugins for you

Common Ninja has a large selection of powerful Wordpress plugins that are easy to use, fully customizable, mobile-friendly and rich with features — so be sure to check them out!

Testimonial

Testimonial plugins for Wordpress

Contact Form

Contact Form plugins for Wordpress

Maps

Maps plugins for Wordpress

Translation

Translation plugins for Wordpress

Chat

Chat plugins for Wordpress

Slider

Slider plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Contact

Contact plugins for Wordpress

Galleries

Galleries plugins for Wordpress

SEO

SEO plugins for Wordpress

Forms

Forms plugins for Wordpress

Comments

Comments plugins for Wordpress

Backup

Backup plugins for Wordpress

Privacy

Privacy plugins for Wordpress

Optimize

Optimize plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Comments

Comments plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Social Sharing

Social Sharing plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Video Player

Video Player plugins for Wordpress

popup

popup plugins for Wordpress

SiteMap

SiteMap plugins for Wordpress

Payment

Payment plugins for Wordpress

Coming Soon

Coming Soon plugins for Wordpress

Inventory

Inventory plugins for Wordpress

Testimonials

Testimonials plugins for Wordpress

Portfolio

Portfolio plugins for Wordpress

Membership

Membership plugins for Wordpress

Forms

Forms plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Events Calendar

Events Calendar plugins for Wordpress

Sliders

Sliders plugins for Wordpress

Analytics

Analytics plugins for Wordpress

Reviews

Reviews plugins for Wordpress

Security

Security plugins for Wordpress

Ads

Ads plugins for Wordpress

Music Player

Music Player plugins for Wordpress

Countdown

Countdown plugins for Wordpress

Email Marketing

Email Marketing plugins for Wordpress

Membership

Membership plugins for Wordpress

Ecommerce

Ecommerce plugins for Wordpress

Customer Support

Customer Support plugins for Wordpress

Video Player

Video Player plugins for Wordpress

Tabs

Tabs plugins for Wordpress

Social Feeds

Social Feeds plugins for Wordpress

Common Ninja Apps

Some of the best Common Ninja plugins for Wordpress

Browse our extensive collection of compatible plugins, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

HIPAA Compliance Forms for Wordpress logo

HIPAA Compliance Forms

Create secure HIPAA compliant forms that protect sensitive data, offer full customization, and integrate easily for safe medical information collection.

Form Builder for Wordpress logo

Form Builder

Create custom forms with a form builder that offers advanced field types, easy layout control, and flexible options for any purpose.

Team Member Flip Cards for Wordpress logo

Team Member Flip Cards

Show your team with interactive team member flip cards that build trust, support transparency, and help visitors connect with the people behind your brand.

Image Wall for Wordpress logo

Image Wall

Showcase visuals with an image wall that creates a parallax style gallery, offers smooth scrolling, and presents images in customizable, engaging layouts.

Social Votes for Wordpress logo

Social Votes

Encourage interaction with social votes that let visitors like, upvote, and rank content, boosting engagement and guiding better decisions.

Google Reviews for Wordpress logo

Google Reviews

Show verified customer feedback with Google Reviews to build trust, strengthen credibility, and help visitors make confident purchase decisions.

Catalog for Wordpress logo

Catalog

Create and customize product catalogs with a catalog widget that organizes items clearly, improves browsing, and helps visitors explore your offerings easily.

Video Gallery for Wordpress logo

Video Gallery

Showcase videos with a video gallery that organizes clips from multiple sources in clear visual layouts that keep visitors watching and support higher conversions.

Quotes Carousel for Wordpress logo

Quotes Carousel

Show inspiring quotes with a quotes carousel that rotates messages, enhances design, and keeps visitors engaged.

Restaurant Menu List for Wordpress logo

Restaurant Menu List

Create a clear restaurant menu list that helps visitors explore dishes easily, understand key details, and make confident ordering decisions that support conversions.

Stop Motion Player for Wordpress logo

Stop Motion Player

Create engaging stop motion displays with a stop motion player that turns image sequences into interactive animations to boost creativity and visitor engagement.

Count-Up Clock for Wordpress logo

Count-Up Clock

Track time since important events with a count up clock that displays elapsed days and hours and keeps visitors engaged.

More plugins

plugins You Might Like

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms