Hi David,

Let me point out the steps I have performed to solve a similar task.
A while ago I wanted to create different manifest files - specific for
the browser type - because I did not want to cache all HTML files
(even the ones that are not relevant for a specific browser) in its
cache.

Here is what I did:

1.) Create a custom GWT-Linker by extending the class
SimpleAppCacheLinker.
2.) Register this new Linker in the module.gwt.xml
3.) Inside the linker i have put code for generating different
manifest files
4.) On every build the linker gets called and new manifest files are
generated.
5.) Paste a UID as a comment in every manifest and change the UID on
every build process. Your browser will only validate the cached files,
if the manifest file has changed...

6.) Within the applications main HTML file I reference the manifest
like <html manifest="myApp/appcache.nocache.manifest">
7.) In order to return the correct manifest file to the caller (the
browser) I added a simple ServletFilter to the application.
8.) This ServletFilter listens for requests for the file
appcache.nocache.manifest. If such a request is detected - the filter
reads the HTTP Header Attribute to detect the typ of the calling
browser.
9.) Last but not least the filter redirects the response to the
correct, appropriate manifest file.

I think with little adaptions this approach may be usesful for your
problem as well.

Hope this helps!

Greetings
Stefan

On 18 Okt., 14:50, David Sauvier <[email protected]> wrote:
> My app uses the concept of Projects, each Project has multiple support
> files (primarily image files and pdf's)  that need to be made
> available offline. I want to use HTML5 cache to accomplish this.
>
> If I include all the support files for all the projects in the cache-
> manifest it would be massive and not feasible.
>
> User's are assigned to Projects, so ideally I could have a custom
> cache-manifest file for each user that contains the support files
> needed for the projects that user is assigned to.
>
> How can I accomplish this? Is there a way to assign a cache-manifest
> grammatically after onModulueLoad()?
>
> Thanks in advance for the solution or any advice on how to accomplish
> this functionality.
>
> David S.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to