Giter Site home page Giter Site logo

Comments (4)

drnic avatar drnic commented on August 16, 2024

If you can find an example nginx snippet on the Internet for this then it can be merged into the nginx.conf being used here. Possible for you to do that?

On Thu, Mar 5, 2015 at 12:25 PM, Lucas Bickel [email protected]
wrote:

I'd like to add a mime type to serve a text/cache.manifest manifest file from my app.

I'm trying to create a html5 offline app. I could use the php buildpack to accomplish this, but it seems like overkill given this app has no local NETWORK resources in the manifest.

Reply to this email directly or view it on GitHub:
#16

from staticfile-buildpack.

hairmare avatar hairmare commented on August 16, 2024

I added an example in #17. It's in mime.types rather than nginx.conf.

from staticfile-buildpack.

edmorley avatar edmorley commented on August 16, 2024

If it helps in the meantime, you should also be able to create a custom mime.types:
https://github.com/cloudfoundry-incubator/staticfile-buildpack/blob/caa6cea1527f4bc8720ee566ff1c4f99331746c1/bin/compile#L52

I've added this to the README in #25.

from staticfile-buildpack.

hairmare avatar hairmare commented on August 16, 2024

#25 helps a lot and perfectly answers my original question so I'm closing this issue.

It's nice to know that I can override the nginx.conf as well.

I'm keeping #17 open since I still believe having it as default might have its merits. Feel free to close it if you feel otherwise.

from staticfile-buildpack.

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.