Hello

I am trying to test the server push feature on a static website with
standalone Jetty.

My website consists of an index.html  + 1 CSS + a bunch of images. The
directory structure is:

/Album
       |
       |-----index.html
       |-----style.css
       |------/images
                 |
                 |-----  image 1
                 |---a set of about 100 images
                 |---image100.png


As I just wanted to quickly test out the server push feature I did not code
this website as a Java Web project and, therefore, didn't have any web.xml
file.

However, the Jetty documentation asks to add PushCacheFilter to web.xml.
Therefore, I created a /Album/WEB-INF/web.xml in my project and added the
PushCacheFilter as the documentation specified.

First, I am unable to understand from the documentation how exactly
PushCacheFilter works.
Secondly, I want to control which files get pushed and which do not. From
the documentation, it seems PushCacheFilter doesn't give me that kind of
control.

I have checked a few examples on Internet but most of them are with
embedded Jetty.
Will someone please help me to figure out how to test server push feature
in my static website with standalone Jetty?

Also, I wanted to ask whether the HTTP/2 client example in Jetty's GitHub
repository directly usable as such? Sorry, haven't tested the client
myself. I just saw it in the repository and was curious. I'll be really
thankful if someone can point me in the direction of example use cases with
Jetty's HTTP and HTTP/2 client.
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to