Comments (5)
Just add the desired expiration to app.yaml,
these settings will propagate to appengine-web.xml
# app.yaml
static_files:
- include: /**/*.ico
expiration: 365d
- include: /**/*.gif
expiration: 365d
- include: /**/*.jpeg
expiration: 365d
- include: /**/*.jpg
expiration: 365d
- include: /**/*.png
expiration: 365d
- include: /**/*.js
expiration: 365d
- include: /**/*.css
expiration: 365d
# WEB-INF/appengine-web.xml
<static-files>
<include path='/**/*.ico' expiration='365d'/>
<include path='/**/*.gif' expiration='365d'/>
<include path='/**/*.jpeg' expiration='365d'/>
<include path='/**/*.jpg' expiration='365d'/>
<include path='/**/*.png' expiration='365d'/>
<include path='/**/*.js' expiration='365d'/>
<include path='/**/*.css' expiration='365d'/>
</static-files>
from dubious.
Thanks for the advice.
I was trying to point out that havign expiration in past on production machine when you can set them as "never expire" seems like a bug to me.
from dubious.
This is much simpler than what folks need to do with Apache. We do need to be careful, we don't want other developers setting this, but then creating the links by hand.
from dubious.
Thats a good point.
Maybe we could copy those files that are linked properly with dubious into a directory that would get those 356d expirations? (when publishing)
from dubious.
I've added the changes, we should be fine. We just need to be careful to document this for new users.
from dubious.
Related Issues (20)
- Nowhere to put non MVC classes HOT 5
- File upload support HOT 3
- parameters are empty when using multipart/form-data HOT 1
- .mirah files are not compiled HOT 2
- org/mirah/Compiler.duby:4: undefined method `build_constructor' for #<BiteScript::ClassBuilder:0xc393a1> HOT 6
- Missing dependency in Rakefile HOT 1
- FormHelper does not import Params HOT 1
- The Mirah version README suggests to install cannot compile models. HOT 2
- Rakefile doesn't run server HOT 1
- Transaction inside an iteration: undefined method `defining_class' for #<Duby::AST::Block:0xc98b07> HOT 1
- Cannot build dubious - class ScopedParameterMap not found HOT 4
- appcfg.sh must be on the path HOT 7
- server rake task provides no way to override listening interface HOT 2
- `dubious generate controller Widgets` creates singular class name HOT 2
- rake server keeps reloading. HOT 1
- dubious keeps reloading after changing app.yaml HOT 1
- circular dependencies not allowed HOT 1
- rake server exits immediately without any errors reported HOT 4
- {routes,asset,application}.properties - unused? HOT 3
- uninitialized constant ActiveSupport::SecureRandom HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dubious.