Cloud Infrastructure Assignment

Alibaba Cloud CDN with GitHub Pages

A static website hosted on GitHub Pages acts as the origin server. Alibaba Cloud CDN edge nodes cache its files and serve them to visitors through an accelerated domain.

Detecting delivery hostname… Version 2

The badge only reports which hostname served this page. CDN activity is proven with response headers and console evidence, not by this page.

  1. User Browser
  2. Accelerated Domain
  3. Alibaba Cloud CDN Edge
  4. GitHub Pages Origin
Cache hit: answered at the edge. Cache miss: edge fetches from origin, stores, then responds.

Section B

Student Verification

These values identify the submission and change between Version 1 and Version 2.

Student Name
—
Student ID
—
Verification Token
—
Current Version
—
Last Updated
—

Section C

Architecture Overview

Every request follows the same path. Only the edge decides whether the origin is contacted.

1

User Browser

Requests https://<accelerated-domain>/…. It may also keep its own private browser cache.

2

Accelerated Domain

A hostname you own (e.g. cdn.example.com) whose DNS CNAME points to the CNAME generated by Alibaba Cloud, so DNS routes users to a nearby edge.

3

Alibaba Cloud CDN Edge

Terminates HTTPS, applies cache rules (TTL per path/extension), answers from cache on a hit, or goes back to origin on a miss.

4

GitHub Pages Origin

Serves the source files from the repository at <username>.github.io. The CDN sends that value as the back-to-origin Host header.

Section D

JSON API Demonstration

The page fetches api/news.json with { cache: "no-store" }. That skips the browser cache only; the CDN edge can still return a cached copy, which is exactly what the purge test observes.

Loading…

Requesting api/news.json…

JSON version
—
HTTP status
—
Fetched at
—

Configuration plan

CDN Cache Rules

Planned rules for the Alibaba Cloud console. Specific paths outrank broad extension rules.

PriorityMatchTTLReason
Highest/api/news.json1 minuteData changes often; stale JSON is the costliest mistake.
High/index.html10 minutesEntry page must pick up new versions quickly.
Mediumjpg, jpeg, png7 daysImages rarely change and are the heaviest bytes.
Mediumcss, js1 dayChange with releases; a day balances hit ratio and freshness.
Mediumpdf3 daysDownloads are static but may be revised occasionally.

Section E

Download the Guide

A short original PDF explaining the origin/CDN setup and how to test caching. Served as a static file and cached by the pdf rule.

⬇ Download guide.pdf

Section F

Technical Information

Hosting platform
GitHub Pages (static origin)
CDN provider
Alibaba Cloud CDN
Origin hostname
—
Accelerated domain (planned)
—
Hostname serving this page
—
Website version
—
Cache configuration
5 rules: JSON 1 min · HTML 10 min · images 7 days · CSS/JS 1 day · PDF 3 days
CDN status
Not asserted by this page. Verify with curl -I headers (Via, Age, cache-status headers) and the Alibaba Cloud console.