fastly / magento2
Fastly CDN Module for Magento 2.4.x
Installs: 3 881 158
Dependents: 1
Suggesters: 0
Security: 1
Stars: 155
Watchers: 62
Forks: 123
Open Issues: 31
Type:magento2-module
pkg:composer/fastly/magento2
Requires
- php: ~7.3.0|~7.4.0|~8.0.0|~8.1.0|~8.2.0|~8.3.0|~8.4.0
 - laminas/laminas-http: ^2.6.0
 - magento/framework: >=103.0.0
 - magento/module-cache-invalidate: >=100.4.0
 - magento/module-config: >=101.2.0
 - magento/module-page-cache: >=100.4.0
 - magento/module-store: >=101.1.0
 - zordius/lightncandy: ^1.2
 
- dev-master
 - 1.2.236
 - 1.2.235
 - 1.2.234
 - 1.2.233
 - 1.2.232
 - 1.2.231
 - 1.2.230
 - 1.2.229
 - 1.2.228
 - 1.2.227
 - 1.2.226
 - 1.2.225
 - 1.2.224
 - 1.2.223
 - 1.2.222
 - 1.2.221
 - 1.2.220
 - 1.2.219
 - 1.2.218
 - 1.2.217
 - 1.2.216
 - 1.2.215
 - 1.2.214
 - 1.2.213
 - 1.2.212
 - 1.2.211
 - 1.2.210
 - 1.2.208
 - 1.2.207
 - 1.2.206
 - 1.2.205
 - 1.2.204
 - 1.2.203
 - 1.2.202
 - 1.2.201
 - 1.2.200
 - 1.2.199
 - 1.2.198
 - 1.2.197
 - 1.2.196
 - 1.2.195
 - 1.2.194
 - 1.2.193
 - 1.2.192
 - 1.2.191
 - 1.2.190
 - 1.2.189
 - 1.2.188
 - 1.2.187
 - 1.2.186
 - 1.2.185
 - 1.2.184
 - 1.2.183
 - 1.2.182
 - 1.2.181
 - 1.2.180
 - 1.2.179
 - 1.2.178
 - 1.2.177
 - 1.2.176
 - 1.2.175
 - 1.2.174
 - 1.2.173
 - 1.2.172
 - 1.2.171
 - 1.2.170
 - 1.2.169
 - 1.2.168
 - 1.2.167
 - 1.2.166
 - 1.2.165
 - 1.2.164
 - 1.2.163
 - 1.2.162
 - 1.2.161
 - 1.2.160
 - 1.2.159
 - 1.2.158
 - 1.2.157
 - 1.2.156
 - 1.2.155
 - 1.2.154
 - 1.2.153
 - 1.2.152
 - 1.2.151
 - 1.2.150
 - 1.2.149
 - 1.2.148
 - 1.2.147
 - 1.2.146
 - 1.2.145
 - 1.2.144
 - 1.2.142
 - 1.2.141
 - 1.2.140
 - 1.2.139
 - 1.2.138
 - 1.2.137
 - 1.2.136
 - 1.2.135
 - 1.2.134
 - 1.2.133
 - 1.2.132
 - 1.2.131
 - 1.2.130
 - 1.2.129
 - 1.2.128
 - 1.2.127
 - 1.2.126
 - 1.2.125
 - 1.2.124
 - 1.2.123
 - 1.2.122
 - 1.2.121
 - 1.2.120
 - 1.2.119
 - 1.2.118
 - 1.2.117
 - 1.2.116
 - 1.2.115
 - 1.2.114
 - 1.2.113
 - 1.2.112
 - 1.2.111
 - 1.2.110
 - 1.2.109
 - 1.2.108
 - 1.2.107
 - 1.2.106
 - 1.2.105
 - 1.2.104
 - 1.2.103
 - 1.2.102
 - 1.2.101
 - 1.2.100
 - 1.2.99
 - 1.2.98
 - 1.2.97
 - 1.2.96
 - 1.2.95
 - 1.2.94
 - 1.2.93
 - 1.2.92
 - 1.2.91
 - 1.2.90
 - 1.2.89
 - 1.2.88
 - 1.2.87
 - 1.2.86
 - 1.2.85
 - 1.2.84
 - 1.2.83
 - 1.2.82
 - 1.2.81
 - 1.2.80
 - 1.2.79
 - 1.2.78
 - 1.2.77
 - 1.2.76
 - 1.2.75
 - 1.2.74
 - 1.2.73
 - 1.2.72
 - 1.2.71
 - 1.2.70
 - 1.2.69
 - 1.2.68
 - 1.2.67
 - 1.2.66
 - 1.2.65
 - 1.2.64
 - 1.2.63
 - 1.2.62
 - 1.2.61
 - 1.2.60
 - 1.2.59
 - 1.2.58
 - 1.2.57
 - 1.2.56
 - 1.2.55
 - 1.2.54
 - 1.2.53
 - 1.2.52
 - 1.2.51
 - 1.2.50
 - 1.2.49
 - 1.2.48
 - 1.2.47
 - 1.2.46
 - 1.2.45
 - 1.2.44
 - 1.2.43
 - 1.2.42
 - 1.2.41
 - 1.2.40
 - 1.2.39
 - 1.2.38
 - 1.2.37
 - 1.2.36
 - 1.2.35
 - 1.2.34
 - 1.2.33
 - 1.2.32
 - 1.2.31
 - 1.2.30
 - 1.2.29
 - 1.2.28
 - 1.2.27
 - 1.2.26
 - 1.2.25
 - 1.2.24
 - 1.2.23
 - 1.2.22
 - 1.2.21
 - 1.2.20
 - 1.2.19
 - 1.2.18
 - 1.2.17
 - 1.2.16
 - 1.2.15
 - 1.2.14
 - 1.2.13
 - 1.2.12
 - 1.2.11
 - 1.2.10
 - 1.2.9
 - 1.2.8
 - 1.2.7
 - 1.2.6
 - 1.2.5
 - 1.2.4
 - 1.2.3
 - 1.2.2
 - 1.2.1
 - 1.2.0
 - 1.1.11
 - 1.1.10
 - 1.1.9
 - 1.1.8
 - 1.1.7
 - 1.1.6
 - 1.1.5
 - 1.1.4
 - 1.1.3
 - 1.1.2
 - 1.1.1
 - 1.0.9
 - 1.0.8
 - 1.0.7
 - 1.0.5
 - 1.0.4
 - 1.0.3
 - 1.0.2
 - 1.0.1
 - 1.0.0
 - dev-datacenters-json-auto-update-20251020
 - dev-datacenters-json-auto-update-20251013
 - dev-datacenters-json-auto-update-20251006
 - dev-datacenters-json-auto-update-20250922
 - dev-datacenters-json-auto-update-20250915
 - dev-datacenters-json-auto-update-20241223
 - dev-datacenters-json-auto-update-20241202
 - dev-datacenters-json-auto-update-20241118
 - dev-datacenters-json-auto-update-20240916
 - dev-brotli
 - dev-datacenters-json-auto-update-20230410
 - dev-datacenters-json-auto-update-20230123
 - dev-blue-green-deployment
 - dev-fix_549
 - dev-revert-530-fix/503
 - dev-datacenters-json-auto-update-20220322
 - dev-datacenters-json-auto-update-20220310
 - dev-datacenters-json-auto-update-20220309
 - dev-datacenters-json-auto-update-20220225
 - dev-smaeda-ks/fix-create-backend
 - dev-smaeda-ks/fix-type-check-2
 - dev-smaeda-ks/fix-blocking
 - dev-smaeda-ks/remove-old-esi-workaround
 - dev-smaeda-ks/fix-type-check
 - dev-smaeda-ks/bypass-purge-requests
 - dev-smaeda-ks/magento-io-tester
 - dev-smaeda-ks/fix-domain-validation-regex
 - dev-smaeda-ks/use-local-file-for-shielding-list
 - dev-smaeda-ks/update-cors-edge-module
 - dev-update-docs-links-to-fastly-docs
 - dev-update-configuration-link
 - dev-ratelimiting
 - dev-vcl_x_compress_hint
 - dev-tag/1.2.1
 - dev-geoip
 - dev-revert-202-excludejsurl
 - dev-headers
 
This package is auto-updated.
Last update: 2025-10-30 07:26:32 UTC
README
Thank you for using the "Fastly CDN module for Magento2" (Fastly_Cdn).
This package contains everything you need to connect fastly.com (Fastly) with your Magento commerce shop and to get the most out of Fastly's powerful caching capabilities for a blazing fast e-commerce site.
Contents
Description
The Fastly_Cdn module relies on Magento2's page cache functionality and extends its Varnish capabilities to leverage Fastly's enhanced caching technology and Geo-IP support.
The second component, the VCL, configures Fastly's Varnish to process the client requests and Magento's HTML responses according to the Cache-Control headers the Fastly_Cdn module adds to every response.
Documentation
Documentation for this module can be found in the Documentation folder.
- Installation instructions
 - Configuration instructions
 - TLS configuration instructions
 - Purging and Other Functions
 - Troubleshooting instructions
 - How to report bugs
 
Support
Help using this module can be found by posting to Fastly's community forum.
For Fastly customers with a Support Package please reach out via the normal channels.
If there are issues/errors with integrating the module, please post details in the GitHub repository issues.
Features
The module utilises a number of features of Fastly's services. This section will provide a brief overview of the ones available in the Fastly_Cdn module.
Geo IP Detection: Using the client's IP this allows a regional store to be delivered to the user.
Serving Stale on Errors: This allows an expired copy of content to be used in case of errors on the origin. This prevents site outages being visible to users.
Serving Stale while Revalidating: This allows an expired copy of content to be served while the content is refreshed from origin. This maintains performance while keeping a fresh cache.
Soft Purging: This marks content as expired (before the TTL). Using this means that content can be freshened actively while using stale content to users for a fast site.
N.B. More in-depth explanations of these features can be found in Fastly's Documentation.
Contributing
We welcome pull requests for issues and new functionality. Please see Contributing for more details.