Giter Site home page Giter Site logo

ido50 / mccs Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 4.0 180 KB

Fully-featured static file server

Home Page: http://search.cpan.org/dist/Plack-App-MCCS

License: Apache License 2.0

Perl 97.51% JavaScript 0.96% CSS 0.65% Less 0.49% Makefile 0.37% HTML 0.03%
file-server http-server perl plack-app psgi static-site

mccs's Issues

Use dclone on cache_control

_determine_cache_control is grabbing the cache_control variable and then stuffing a max-age item in there. Since cache_control is an arrayref, the original default is tainted with an ever-growing set of duplicate max-age items.

The cache_control default needs to be cloned prior to modification.

distribution has a perl prereq of 5.021008

This is because [MinimumPerl] is finding something interesting in one of the css files.

To exclude it, you need to modify MinimumPerl with a custom filefinder:

[FileFinder::Filter / TestFiles_no_CSS]
finder = :TestFiles
skip = \.css$

[MinimumPerl]
test_finder = TestFiles_no_CSS

However, since [MinimumPerl] is being brought in through your plugin bundle, you need to do things a little differently: modify your bundle to compose the Dist::Zilla::Role::PluginBundle::PluginRemover and Dist::Zilla::Role::PluginBundle::Config::Slicer roles, then do this in dist.ini:

; define the filefinder as before
[@IDOPEREL]
MinimumPerl.test_finder = TestFiles_no_CSS

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.