How to best determine if a request returns service worker content?
-
Is there an easy way to conditionally check whether a request is returning service worker content?
E.g., what would an equivalent of
is_archive()
oris_singular()
look like for requests to example.com/?wp_service_worker=1 and similar (including example.com/?wp_error_template=offline, example.com/?wp_error_template=500, and others)?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to best determine if a request returns service worker content?’ is closed to new replies.