DaveH
DaveH

Reputation: 7335

GAE Static Resource Expiry

I have a pretty simple Java web app that follows the usual directory structure that Maven expects.

When I run the application locally ( mvn -D skipTests clean package appengine:run ) files which are requested from the css directory are given an expiry date of 10 minutes. Files from the js directory don't seem to be given an expiry date at all. Both of these directories are at the same level, directly beneath my webapp directory.

I don't believe that I have configured the css and js directories differently, so I would expect them both to get the default expiration of 10 minutes. What am I doing wrong?

enter image description here

Upvotes: 0

Views: 27

Answers (1)

DaveH
DaveH

Reputation: 7335

It seems the following is required in appengine.web.xml

<static-files>
    <include path="/**.js" expiration="10m" />
</static-files>

Upvotes: 1

Related Questions