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
2 answers

Varnish: Rewrite a URL if response is 404

I'm curious if there is a way rewrite a URL if response is a 404, in Varnish 2.1.5? For example. I'd like to pull up a URL, which may or may not exist. If the URL doesn't exist, I'd like to do a URL rewrite and try the new URL instead. I'm new to…
Vinnie James
  • 5,763
  • 6
  • 43
  • 52
1
vote
1 answer

firebase storage bucket and Fastly CDN integration

In order for me to get Fastly working with firebase storage I had to add the following permissions on each image and the storage bucket: Entity: User, Name: AllUsers, Access: Reader. Is there a way to avoid this tedious and unscalable method, since…
jasan
  • 11,475
  • 22
  • 57
  • 97
1
vote
2 answers

What would cause SSL Certificate errors across all installed OSX browsers but Firefox?

Every attempt to connect to Wired.com is met with a certificate error. I've checked the usual suspects and even done things that probably have nothing to do with it. Browsers tried Safari=failed Chrome=failed Brave=failed Firefox=success Verified…
Mike Padg
  • 63
  • 7
1
vote
2 answers

Specify expiration date when setting cookies

I want to specify an expiration date when setting cookies in VCL. I currently have something like this: add resp.http.Set-Cookie = "language=" + req.http.X-Language + "; path=/"; I know that I will have to add something like this: Expires=Thu, 01…
angelcool.net
  • 2,505
  • 1
  • 24
  • 26
1
vote
0 answers

Fastly cache invalidation fastly-rails and friendly ID

I'm struggling with cache invalidation on Fastly and a rails app I work on. I'm using the fastly-rails gem and have confirmed the CNAMEs are set up correct. The issue is essentially as such: A page is cached and served correctly from Fastly when…
Lowell Mower
  • 313
  • 4
  • 14
1
vote
2 answers

Does fastly automatically purge when new code pushed to heroku?

I've been using Fastly CDN for a bunch of static assets like images and so on, and I'd like to use it for my javascript and css as well but I'm wary that it won't update if I push new code and that this will cause errors. I know I could just set up…
MalcolmOcean
  • 2,807
  • 2
  • 29
  • 38
0
votes
1 answer

How to Pass Pushpin Pod Instance Details When Invoking Backend Service Defined in Pushpin Config Routes

I'm currently working with Pushpin instances running within a distributed system. Each Pushpin instance communicates with a Java backend service via routes that are defined in the Pushpin configuration YAML file. My goal is to enrich the backend…
Techie97
  • 21
  • 6
0
votes
1 answer

CORS rejecting requests from Fastly endpoint

Trying to troubleshoot, what I think is a, CORS issue. Heroku us our host. Fastly is our CDN. Browser console error: Access to fetch at 'https://myapp.com/rails/active_storage/blobs/redirect/aBcD--redacted--/image_0123456789.pdf' from origin…
Meltemi
  • 37,979
  • 50
  • 195
  • 293
0
votes
1 answer

Prevent pipeline in Rails 7 application from caching service-worker JS for PWA

Rails 7 application running on Heroku with a Fastly CDN for static assets in /public and we're now experimenting with PWA compatibility. All our assets (image, css, js, etc.) are hashed and minified so their cache can be busted if a file changes. We…
Meltemi
  • 37,979
  • 50
  • 195
  • 293
0
votes
0 answers

acme-challenge conflict with TXT record

I'm using cert-manager on Kubernetes and I'm trying to use the acme-challenge for creating a wildcard certificate on our Kubernetes cluster using DNS solver, in my case it seems that Fastly already uses the acme-challenge TXT record. there are two…
Maoz Zadok
  • 4,871
  • 3
  • 33
  • 43
0
votes
1 answer

Detect user location in React app, Can Fastly be used with Non Server Side Rendering react app?

this is my first task of detecting users' geo locations and I am a fairly new dev. The app uses React and backend is node.js. Currently we have some functions that calls an api which returns users' locations.( this takes a while) But, two other…
DollyBeeBee
  • 83
  • 3
  • 8
0
votes
2 answers

How can I use ESI tag for html script including?

I'm trying to reduce the number of requests' connections of js scripts and one option is usage of esi tag. Like from: To: But now cdn is…
0
votes
1 answer

Disable fastly cache on individual request

I have a legacy system that still serves customers and needs to be behind a fastly cache. However, our new system needs to stay in sync with our legacy system, so we make updates via the rest api. However, since fastly caches the results, this can…
CStroliaDavis
  • 392
  • 4
  • 14
0
votes
1 answer

Fastly - error page detect and serve from specific server

We have two servers running with Fastly as the CDN and filtering which types of content get served by which build. In the Fastly code base, we have a .tl file and a .vcl file that contains all logic that defines which routes point to which…
Jorge Mauricio
  • 411
  • 6
  • 18
0
votes
2 answers

How to stop Fastly HTTPS 308 Permanent Redirect?

I have a Fastly Compute@Edge service that is configured to use HTTP for the frontend domain and backend host, but when I connect I get a 308 https redirect which I'd like to stop. I'd like it to just run and return the Edge function code which…
Grokify
  • 15,092
  • 6
  • 60
  • 81