Title: Network First Strategy and Browser Cache
Last modified: August 3, 2020

---

# Network First Strategy and Browser Cache

 *  Resolved [androweb](https://wordpress.org/support/users/androweb/)
 * (@androweb)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/network-first-strategy/)
 * I have browser caching via Cache-Control in .htaccess, plus this PWA plugin with
   the Basic Site Caching plugin activated.
 * I would like to clarify how STRATEGY_NETWORK_FIRST affects the way the browser
   utilises browser caching. If the NETWORK is available does it work the same way
   as if there was no PWA, e.g it checks Browser Cache (not SW) and then the server,
   or does it only check the server and ignores the Browser Cache. I’m assuming 
   it’s the former, so NETWORK in the context of PWA terminology means a normal 
   online browser behaviour – check Browser Cache then Server.
 * Thanks.
    -  This topic was modified 5 years, 9 months ago by [androweb](https://wordpress.org/support/users/androweb/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * (@westonruter)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/network-first-strategy/#post-13214443)
 * When the network first strategy, if the network is available, yes, the service
   worker will pass-through the response. However, it will also cache the response
   so that the next time the request is made, the cached response can be served 
   if the network is not available. The `Cache-Control` headers will control whether
   the browser tries to hit the network in the first place if the resource is already
   cached.
 * I recommend the Workbox documentation on the strategies: [https://developers.google.com/web/tools/workbox/modules/workbox-strategies#network_first_network_falling_back_to_cache](https://developers.google.com/web/tools/workbox/modules/workbox-strategies#network_first_network_falling_back_to_cache)

Viewing 1 replies (of 1 total)

The topic ‘Network First Strategy and Browser Cache’ is closed to new replies.

 * ![](https://ps.w.org/pwa/assets/icon.svg?rev=1908485)
 * [PWA](https://wordpress.org/plugins/pwa/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pwa/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pwa/)
 * [Active Topics](https://wordpress.org/support/plugin/pwa/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pwa/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pwa/reviews/)

## Tags

 * [browser cache](https://wordpress.org/support/topic-tag/browser-cache/)
 * [network](https://wordpress.org/support/topic-tag/network/)

 * 1 reply
 * 2 participants
 * Last reply from: [Weston Ruter](https://wordpress.org/support/users/westonruter/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/network-first-strategy/#post-13214443)
 * Status: resolved