LibWeb/ServiceWorker: Immediately finish job if resources didn't change

This commit is contained in:
Shannon Booth 2025-04-08 17:26:30 +12:00 committed by Andrew Kaster
commit 9bc022c229
Notes: github-actions[bot] 2025-04-21 21:27:59 +00:00
2 changed files with 16 additions and 2 deletions

View file

@ -41,6 +41,7 @@ public:
StorageAPI::StorageKey const& storage_key() const { return m_storage_key; }
URL::URL const& scope_url() const { return m_scope_url; }
Bindings::ServiceWorkerUpdateViaCache update_via_cache() const { return m_update_via_cache_mode; }
void set_update_via_cache(Bindings::ServiceWorkerUpdateViaCache update_visa_cache_mode) { m_update_via_cache_mode = update_visa_cache_mode; }
void set_last_update_check_time(MonotonicTime time) { m_last_update_check_time = time; }