[appengine-java] Re: Setting headers to static files / resources

2012-02-12 Thread andrew
We had a similar need for serving font files cross-site,
 as some versions of IE need the header, and didn't find anyway to do
it for a static file.

We need something like the mechanism for mapping file extensions to
mime types in web.XML

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] AppEngineFile typo

2012-02-12 Thread Amy Unruh
Thanks for catching that; I've filed an internal issue for it.

On Mon, Feb 13, 2012 at 2:02 PM, Mike Lawrence wrote:

> On page:
> http://code.google.com/appengine/docs/java/googlestorage/overview.html
>
> writableFile = new AppEngine(path);
>
> should be
>
> writableFile = new AppEngineFile(path);
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] memcache persistence

2012-02-12 Thread Amy Unruh
Luke,

All the versions of an app share the same memcache.  (Whether or not
specific data is still there would depend upon whether it has been
expired/evicted).

On Mon, Feb 13, 2012 at 4:02 PM, Luke  wrote:

> Let say we deploy ver 1 of our app and set memcache. After that delete
> version 1 of the app. One hour later we redeploy version 1 d the app.
> Is memcache data still there?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-java@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] memcache persistence

2012-02-12 Thread Luke
Let say we deploy ver 1 of our app and set memcache. After that delete
version 1 of the app. One hour later we redeploy version 1 d the app.
Is memcache data still there?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] AppEngineFile typo

2012-02-12 Thread Mike Lawrence
On page:
http://code.google.com/appengine/docs/java/googlestorage/overview.html

writableFile = new AppEngine(path);

should be

writableFile = new AppEngineFile(path);

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Setting headers to static files / resources

2012-02-12 Thread Rick Mangi
I accidentally replied to Itsu directly instead of posting to the
group...

Take a look at:

http://code.google.com/p/urlrewritefilter/

He replied that this doesn't work for .html files, which is true and
makes sense because requests for static html files are probably never
hitting the servlet engine. If you want to add headers to requests for
static files they can't be static.. you can still have appengine treat
them as such in terms of caching upstream by using urls that are
routed to the urlrewritefilter in web.xml by path and then adding
cache headers (along with whatever other headers you want included)
and forwarding the request to a jsp page or servlet to generate the
response.

We use this technique frequently to add cache and custom headers to
files served out of the blobstore as well as to cache REST requests
served via Jersey.

For example, this should be understandable to anyone who has done any
work with the blobstore...


/media/serve/(.*)/stream.mp3
public, max-
age=86400
24 hours
/serve?blob-key=$1



On Feb 11, 1:15 am, Itsu Tamam  wrote:
> I'd like to add a custom header to all HTML files served from my app.
>
> I'm looking for a configuration option in appengine-web.xml 
> (http://code.google.com/appengine/docs/java/config/appconfig.html)
> or web.xml (http://code.google.com/appengine/docs/java/config/webxml.html),
> but could not found any. - Maybe I'm missing something in the documentation?
>
> Wrapping our HTML's in JSP (or any other server side HTML generation
> technology) is not a good solution for us - we want our HTML files to be
> cached in the front-ends.
>
> We need this in order to set a X-FRAME-OPTIONS header.
>
> Help will be really appreciated.
>
> Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Request for best practice ideas for deployment of GWT JARs in AppEngine project

2012-02-12 Thread Daniel Florey
Hi,
our approach is to split up gwt modules into xxx-user.jar and 
xxx-server.jar. You can then copy the xxx-server.jar (containing only 
server/shared code) to WEB-INF/lib.
What 3rd party modules are you referring to?

Daniel

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/dgQ6mFkWH0wJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.