Code Monkey home page Code Monkey logo

apmod's Introduction

apmod

copy my old project from code.google.com/p/apmod

mod_concatx

mod_concatx: the ability to join multiple files together in a single request. This is a performance optimization. instead of requesting several seperate css or javascript files from your server, you can do it one request. It is based on mod_concat but makes ​​improvements.

  1. use the browser cache in effect
  2. avoid service code leak
  3. avoid content stick together
  4. support gzip

Usage

<script src="http://www.example.com/js/??js1.js,js2.js,js3.js" ></script>

Apache Module Setting

modify config: "conf/httpd.conf"

LoadModule concatx_module modules/mod_concatx.dll

Advanced Settings:(Default)

<IfModule concatx_module>
ConcatxDisable Off
ConcatxCheckModified On
ConcatxSeparator On
ConcatxMaxSize 1024
ConcatxMaxCount 10
ConcatxFileType js,css
</IfModule>

Setting Meaning

ConcatxDisable On/Off

Whether to disable mod_concatx

ConcatxCheckModified On/Off

Detects whether a file change, suggestion: On

ConcatxSeparator On/Off

Whether add newline when concat files, suggestion: On

ConcatxMaxSize 1024

Limit the max size of all files, suggest lower

ConcatxMaxCount 10

Limit the max number of all files, suggest lower

ConcatxFileType js,css

File types, if without limiting fill ","

Support gzip

This feature depend on mod_deflate, one of native apache modules so modify apache config "conf/httpd.conf", and add:

LoadModule deflate_module modules/mod_deflate.so

apmod's People

Contributors

chenweiqi avatar

Watchers

James Cloos avatar Koma avatar

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.