Questions tagged [fastly]

Fastly is a content delivery network and edge cloud platform used by the latest generation of web services.

The Fastly platform allows you to build and deploy services globally in VCL on top of the Varnish cache server or in WASI-compatible languages such as Rust or AssemblyScript on the Compute@Edge platform.

76 questions
1
vote
0 answers

502 error when using AWS Amplify as a Fastly backend

I have an AWS Amplify app running NextJS 13. This works fine when accessed directly through its standard url, ie https://{branch}.{appId}.amplifyapp.com I believe this is actually powered by Lambda@edge under the hood, but I don't have any real…
Dan
  • 6,265
  • 8
  • 40
  • 56
1
vote
1 answer

Obtain error cause inside Fastly vcl_error subroutine

Fastly allows to customise vcl_error subroutine. However, If I override it (e.g. sub vcl_error { #FASTLY error set obj.http.Custom-Header = "foo-bar"; return(deliver); } ), original response body with error cause (e.g. "first byte timout") is…
Sergey Galkin
  • 159
  • 3
  • 8
1
vote
0 answers

ERR_TLS_CERT_ALTNAME_INVALID fastly compilation error for iOS release build

I have a React Native app, I ejected from Expo, and I now have a Bare Workflow. When I try to compile an iOS Release build I have the following error: Error [ERR_TLS_CERT_ALTNAME_INVALID]: Hostname/IP does not match certificate's altnames: Host:…
Matthieu
  • 101
  • 1
  • 5
1
vote
2 answers

How regularly is the cached content updated from origin server in CDN?

Since most of CDNs update the cache data only after it reaches an expiry, what if the origin server is updated before that. Does the CDN serve the old data until updated upon expiry?
fractal397
  • 534
  • 1
  • 5
  • 11
1
vote
1 answer

Fastly purges pages for no reason

I have a site that uses Fastly as an FPC, I've blocked all "purge" requests from code in order to keep pages cached as long as I need. "Expire" header has +1 day interval. To test that i've set up a cronjob to open a specific page every minute. It…
kom93__
  • 57
  • 5
1
vote
1 answer

Error 503 unable to get issuer certificate Fastly CDN

I am trying to configure Fastly CDN for my website and as per the requirements of Fastly, I have updated the TLS CA certificate, TLS client certificate and TLS client key in .pem format. However, when I try to access the domain, I get an error…
Bhargav Mg
  • 337
  • 4
  • 12
1
vote
1 answer

Fastly 400 error "exceeding_max_backends" when creating Fastly Service through pulumi

I sometimes get a 400 error when creating my Fastly Service through pulumi. The error message is below. error: 1 error occurred: * updating urn:my:cdn: 400 - Bad Request: Title: Bad request Detail: Exceeding max_backends: 5 I've had…
Victor Cui
  • 1,393
  • 2
  • 15
  • 35
1
vote
1 answer

nodeJS request library: making POST request with surrogate key instead of URL

I am trying to use nodeJS request library to issue a POST request to purge content associated with a certain surrogate key via Fastly API. The POST request would look something like this: POST /service/SU1Z0isxPaozGVKXdv0eY/purge Content-Type:…
maddie
  • 1,854
  • 4
  • 30
  • 66
1
vote
1 answer

Magento 2 Show differnt price for different customers causing issue with Fastly

I just want to show different price for different customers. But I don't want to make any block cachable false. The Issue is when a customer loads a category page then it cache generates and for all customers that cached pages shows. I fix that for…
1
vote
1 answer

VCL return(lookup)

We are using Fastly and its Varnish to deliver content from our services. To distribute the content amongst several services, we are using following snippet: sub vcl_recv { #FASTLY recv if (req.url.path ~ "^/services/") { set…
Vojtěch
  • 11,312
  • 31
  • 103
  • 173
1
vote
1 answer

Removing whitespaces and newline characters from GraphQL based on condition

I am trying to remove extra whitespaces and newline characters from my GraphQL query but the data between 2 double quotes in filter argument should remain intact. Here's how the query is received on our fastly's CDN # input {"query":"query OpName …
Rahul Vaid
  • 21
  • 3
1
vote
1 answer

AWS ELB getting lots of 404 errors from Fastly health check

In my logs for my Elastic Beanstalk App I keep seeing "GET /aetn-heartbeat.html HTTP/1.1" 404 158 "-" "Varnish/2.1+fastly (healthcheck)" The load balancer is working fine, but the health of my ELB is constantly showing degraded health because of…
1
vote
0 answers

Error 401 BAN Fastly

I am dealing with a strange issue, I have my API platform project hosted in Heroku and I am using fastly as Cache ( Varnish Cache). My problem is that first time that I executed a PUT request, I get this error: "hydra:description": "Client error:…
Castor Duran
  • 309
  • 1
  • 16
1
vote
1 answer

How to extract first n characters of a string in varnish-vcl?

I'm looking for a way to extract the first 'n' characters from a string in VCL. I couldn't find any function like trim(str,starting_pos) or substring(str,len) in the VCL documentation. I've tried searching for this on google and stackoverflow and…
trogdor
  • 13
  • 4
1
vote
1 answer

Fastly vcl for 301 redirecting mixed case paths to lowercase

Since a migration, my app has mixed case paths that are still linked to, but these should 301 redirect to all lowercase paths. However there are some paths that need to still exist as mixed case for legacy api and graphql query reasons. A more…
jerome
  • 4,809
  • 13
  • 53
  • 70