Skip to content

Commit 77d2538

Browse files
committed
Preserve no-JavaScript contact links in the public preview
1 parent 473d360 commit 77d2538

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

DEPLOYMENT.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ submission drafts, internal notes, install endpoints, templates and the upstream
4646
Preview-only transformations remove Omarchy's production Plausible script,
4747
add noindex meta/response headers, and set the homepage Open Graph URL to the
4848
preview domain. CSS/JavaScript entry URLs gain content-hash query versions;
49-
`Cache-Control: no-cache` requests revalidation of the remaining preview assets.
49+
`Cache-Control: no-cache, no-transform` requests revalidation of the remaining
50+
preview assets and prevents Cloudflare's email-obfuscation rewrite from making
51+
the existing public contact link depend on JavaScript.
5052
This prevents old cached styles from being paired with new release markup.
5153
Source HTML retains upstream analytics/canonical metadata for
5254
review; do not upload the entire source tree to a different host.

IMPLEMENTATION-NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ The public release's browser check exposed a stale stylesheet in an existing
6868
Chrome session. Preview packaging now fingerprints CSS/JavaScript entry URLs
6969
and requests cache revalidation. The source tree keeps its original filenames
7070
and static architecture; no bundler or runtime cache workaround was added.
71+
The raw-HTML audit also caught Cloudflare's automatic email obfuscation. A
72+
preview-only `no-transform` response directive preserves the original public
73+
mailto link without requiring Cloudflare's decoding script.
7174

7275
## Intentional deviations and limits
7376

bin/prepare-preview

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ end
6060

6161
File.write(File.join(output, "_headers"), <<~HEADERS)
6262
/*
63-
Cache-Control: no-cache
63+
Cache-Control: no-cache, no-transform
6464
X-Robots-Tag: noindex, nofollow
6565
X-Content-Type-Options: nosniff
6666
Referrer-Policy: strict-origin-when-cross-origin

0 commit comments

Comments
 (0)