Disable CDN caching for HTML, add Quicklink prefetching
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
- Change Cache-Control from s-maxage=31536000 to max-age=0,must-revalidate for all HTML pages and sitemap (fixes stale content after settings change) - Remove Cloudflare PurgeURLs call since we're not caching HTML at CDN - Add Quicklink for client-side prefetching on public blog pages - Make main branch deploy automatic (remove manual trigger) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
5329167c8c
commit
c662e41b97
4 changed files with 9 additions and 18 deletions
|
|
@ -162,15 +162,5 @@ func (s *Server) rebuildSite(ctx context.Context, tenantID string, db *sql.DB, h
|
|||
}
|
||||
}
|
||||
|
||||
if s.cloudflare.IsConfigured() {
|
||||
urls := make([]string, len(pages))
|
||||
for i, p := range pages {
|
||||
urls[i] = baseURL + p.path
|
||||
}
|
||||
if err := s.cloudflare.PurgeURLs(ctx, urls); err != nil {
|
||||
slog.Error("rebuildSite: purge cache", "error", err)
|
||||
}
|
||||
}
|
||||
|
||||
slog.Info("rebuildSite: complete", "tenantID", tenantID, "pages", len(pages))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue