Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » org.eclipse.equinox.http.registry.resources - ability to cache rule
org.eclipse.equinox.http.registry.resources - ability to cache rule [message #122350] Tue, 09 December 2008 16:49 Go to next message
Walter Mising name is currently offline Walter Mising nameFriend
Messages: 128
Registered: July 2009
Senior Member
It is possible to specify cache rule ( eg. private or public and max-age )
for a specific resource ?
If not is there another way to enable the browser to cache the image files ?
Eg.
<extension point="org.eclipse.equinox.http.registry.resources">
<resource
alias="/img"
base-name="/resources/icons"/>
</extension>

Thanks
- Walter.
Re: org.eclipse.equinox.http.registry.resources - ability to cache rule [message #122405 is a reply to message #122350] Wed, 10 December 2008 18:59 Go to previous message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Walter Prabhakar schrieb:
> It is possible to specify cache rule ( eg. private or public and max-age )
> for a specific resource ?

You should file an enhancement request for this. It's currently not
supported. But it should not be too difficult to add support for it.

As a workaround, you can create your own ResourceServlet which sends the
headers you want and exposes the resources you need.

> If not is there another way to enable the browser to cache the image files ?

The current implementation supports etag and the last-modified headers.
This should reply with a 304 to the browser for unmodified images so
that it uses the cached imaged.

-Gunnar

--
Gunnar Wagenknecht
gunnar@wagenknecht.org
http://wagenknecht.org/
Previous Topic:org.eclipse.ui split-package should be exported
Next Topic:Request: Allow Commonwealth English locales/ResourceBundles to inherit from en_GB
Goto Forum:
  


Current Time: Fri Aug 16 21:55:28 GMT 2024

Powered by FUDForum. Page generated in 0.03835 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top