Qasar Younis

Quick Test Checklist - Verify Changes Work

Quick Test Checklist - Verify Changes Work

✅ Files to Verify

  1. Service Worker (sw.js) - Should be accessible at /sw.js
  2. Cache Headers (_headers) - For CDN (won’t work on localhost, but file exists)
  3. Service Worker Registration - In _layouts/default.html

🧪 Testing Steps

1. Open Browser DevTools

2. Check Service Worker Registration

3. Check Console for Errors

4. Test Service Worker File

5. Test Caching

6. Test Offline Mode

7. Verify Pages Load

🚨 Common Issues

Service Worker Not Registering

404 on sw.js

Cache Not Working

✅ Success Criteria

🔧 If Something’s Broken

  1. Check Console: Look for JavaScript errors
  2. Check Network Tab: See what’s failing to load
  3. Unregister Service Worker:
    • DevTools → Application → Service Workers → Unregister
    • Hard refresh (Cmd+Shift+R)
  4. Check Jekyll Output: Look at terminal for errors

📝 Quick Commands

# Check if Jekyll is running
ps aux | grep jekyll

# Restart Jekyll (if needed)
# Stop current: Ctrl+C
# Start: bundle exec jekyll serve --config _config.yml,_config_local.yml

# Check service worker file exists
ls -la sw.js

Your site should be running at: http://localhost:4000

Open it and check the DevTools to verify everything works! 🚀