Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to serve offline application cache manifests for internationalized websites?
    primarykey
    data
    text
    <p>I have a website where the URLs contain the locale information and the client's header Accept-Language (or a select box on each page) chooses the language and redirects to the localized URL for the current page. The default English URL is: <code>http://example.com/</code> locale specific versions of the site's pages contain the locale value: <code>http://example.com/de/</code> or <code>http://example.com/es/</code> etc.</p> <p>I'd like advice on how to handle specifying offline application cache manifests in this situation. I would like localized versions of offline pages to be cached based on the user's URL. i.e. a user landing on the English page and then selecting Spanish would (re?) download the Spanish language URLs specified in the Spanish manifest.</p> <p>Should I name the manifest file differently for the root page for each locale (e.g. en.manifest, es.manifest)? Or if I use the same named manifest on the root URL for each locale will it be re-read if the user changes to a page with a different locale (and a likely different sized manifest file - the webserver would specify not caching the manifest file(s))? Or do I have to explicitly load the locale specific manifest via JavaScript if the user changes locales?</p> <p>I'm concerned that a visitor would start the download of the URLs specified in the default English manifest and then choose their preferred locale and not trigger reading the new locale specific manifest and not loading URLs for the selected locale's manifest.</p> <p>I've done some searching but haven't come across any discussions of this situation.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload