Skip to content

Conversation

jevansnyc
Copy link
Collaborator

  • Added static asset endpoints with 24-hour caching for CSS/JS files
  • Updated main page caching to 10 minutes with ETag versioning
  • Enhanced no-cache headers for all ad content to ensure freshness
  • Implemented cache-busting timestamps for ad requests only
  • Optimized asset loading order with async/defer JavaScript

Things to test:

  • Verify main page loads quickly from cache with proper cache headers
  • Static assets return 304 Not Modified after initial load,
  • Ad content is not cached and loading new assets with each reload

jevansnyc added 12 commits June 25, 2025 19:18
- Add GAM module with request construction and ad serving capabilities
- Add partners.rs for partner-specific configurations
- Create comprehensive publisher IDs audit document
- Update settings and templates for GAM integration
- Add SSL certificates for local development
- Update Cargo dependencies for new functionality
- Add missing Google domains to GAM partner configuration (10 new domains)
- Update handle_gam_test to apply domain rewriting to responses
- Import PartnerManager for consistent domain rewriting across GAM handlers
- Prepare for server-side ad orchestration architecture
- Add encoded path routing with backend mapping for all Google domains
- Expand text content rewriting beyond just JavaScript files
- Add new Fastly backends for adtrafficquality and safeframe domains
- Update routing order to prioritize encoded paths over generic asset handling
- Fix test settings structure to include partners field
- Add static asset endpoints (/static/styles.css, /static/app.js) with 24h cache
- Update main page cache to 10 minutes with ETag versioning
- Ensure ad content stays fresh with aggressive no-cache headers
- Add cache-busting timestamps to ad requests only
- Optimize loading order: CSS first, JS async defer
- Separate cacheable static assets from dynamic ad content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant