Skip to content
This repository has been archived by the owner on Sep 26, 2024. It is now read-only.

Homely/Homely.HackDays.CDNCachedAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Homely.HackDays.CDNCachedAPI

Testing out if we can use a CDN (in this case, Fastly) to cache our REST API responses.

Goal: reduce load on server.

How to test

  1. Go here: http://cachetest.hly.bz/api/values/1
  2. Refresh your browser. You'll notice time is the same, indicating caching on Fastly. (can also check response headers)
  3. Go here: http://cachetest.hly.bz/api/values/1/flush. Cache is now flushed.
  4. Go here: http://cachetest.hly.bz/api/values/1. You'll notice item is updated from server (as time is different)

Cool, huh?

About

Testing out caching REST API responses on a CDN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages