Re: [jetty-users] Cache-control

2020-08-07 Thread Greg Wilkins
John,

can you give me an actual sequence of requests and responses with all the
headers.

thanks


On Thu, 6 Aug 2020 at 11:14, John English  wrote:

> On 04/08/2020 19:38, Greg Wilkins wrote:
> > John,
> >
> > Can you capture some examples of headers from requests and responses
> > that are not being cached.
>
> Closer inspection shows that pages are being cached, even though the
> browsers don't show any cached data under "Memory" in the dev tools. The
> header I'm getting is "Cache-control: max-age=0" and I get a 304
> response to tell the browser to use the cached copy. I'm not generating
> the Cache-control header in my webapp.
>
> The fact that the CSS sometimes doesn't load makes me think that I'm
> sometimes not getting the response...?
>
> > Also can you describe how you are serving the content as well?  Is the
> > CSS just static content? Do you have any filters involved?
>
> The CSS is static, so is being served by the default servlet. JavaScript
> goes through a filter which does I18N translation for error messages
> etc. on specially-tagged strings. When the CSS fails to load, I haven't
> looked to see if the JS has loaded. Next time this happens, I'll have a
> look at headers etc. to see if I can find out any more.
>
> Thanks,
> --
> John English
> ___
> jetty-users mailing list
> jetty-users@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users
>


-- 
Greg Wilkins  CTO http://webtide.com
___
jetty-users mailing list
jetty-users@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users


Re: [jetty-users] Cache-control

2020-08-04 Thread Greg Wilkins
John,

Can you capture some examples of headers from requests and responses that
are not being cached.
Also can you describe how you are serving the content as well?  Is the CSS
just static content? Do you have any filters involved?

If you think there is a problem once  you have the headers, opening an
issue is probably a better way to discuss.

cheers


On Tue, 4 Aug 2020 at 13:37, John English  wrote:

> I have a webapp which I recently upgraded to use Jetty 9.4.30 and I'm
> suddenly finding that CSS stylesheets are occasionally not loaded, and I
> have to reload the affected pages to make them display correctly.
>
> Looking at the browser cache, I find that absolutely nothing is being
> cached. This is true for both Firefox and Chrome. (AFAIK it used to
> cache static resources before the upgrade to 9.4.30, but I might be
> wrong about that...)
>
> Does anyone have any idea why this might be, and what I can do to find
> out more about what's going on?
>
> --
> John English
> ___
> jetty-users mailing list
> jetty-users@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users
>


-- 
Greg Wilkins  CTO http://webtide.com
___
jetty-users mailing list
jetty-users@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users