• Resolved Rasso Hilber

    (@nonverbla)


    Hi there!

    I am making heavy use of link prefetching on one of my websites. In the article about prefetching on MDN they mention, that, if the response header contains Accept-Ranges: bytes, a partially loaded resource can be re-used from the browser cache.

    Could you add this header the wp-content/cache/.htaccess file (the one being in use for “expert” mode), like this?

    
    <IfModule mod_headers.c>
      Header set Vary 'Accept-Encoding, Cookie'
      Header set Cache-Control 'max-age=3, must-revalidate'
      Header set Accept-Ranges 'bytes'
    </IfModule>
    

    Would be happy to submit a PR on GitHub, if you accept these.

Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Add accept-ranges-Header to .htaccess’ is closed to new replies.