Giter VIP home page Giter VIP logo

Comments (5)

woodie avatar woodie commented on July 20, 2024

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.

hakunin avatar hakunin commented on July 20, 2024

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.

woodie avatar woodie commented on July 20, 2024

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.

hakunin avatar hakunin commented on July 20, 2024

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.

woodie avatar woodie commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.