Shane Tomlinson
fd49baf2a7
Allow development resources to contain fragment identifiers.
...
When looking for the filename, strip the fragment identifier (#partofurl) from the resource name.
2013-01-23 17:38:21 +00:00
Austin King
e5a003128a
Merge pull request #18 from madmatah/master
...
Express3 support
2012-10-24 10:00:10 -07:00
Sean McArthur
2f782ec362
remove globals, fixes from jshint
...
fixes #16
2012-09-21 12:09:51 -07:00
Matthieu Huguet
337d20dd5b
Fix compatibility with express 3
2012-09-02 02:49:13 +02:00
Lloyd Hilaiel
4cdd4179c2
add a test for prefixes with url's, fix a formatting bug where filename starts with '/'
2012-06-13 16:01:20 +03:00
Austin King
80ef6d691e
Removing debug level console.log
2012-03-27 20:02:08 -07:00
Austin King
48f449c982
Sigh bad config initialization
2012-02-17 14:01:56 -08:00
Austin King
22e83c4eef
Making control_header an un-documented feature, pref'ed off by default
2012-02-17 09:28:55 -08:00
Austin King
eb42fe3dbe
Moving to if exists block r=lloyd
2012-02-16 17:49:43 -08:00
Austin King
e1f8e545bd
Removing accidentally committed console.log statements
2012-02-16 17:18:15 -08:00
Austin King
9f6af0171b
Only remove headers when handling a cachify request. Doh. Fixes Issue#9
2012-02-16 17:14:12 -08:00
Austin King
b6957c4759
Use a 10 digit hex instead of raw MD5. Fixes Issue#6. Adding feedback from @lloyd
2012-02-16 16:52:43 -08:00
Austin King
b85c91d5ce
Don't allow other middleware to set ETag or Last-Modified headers.
2012-02-16 16:13:52 -08:00
Austin King
4798c78685
Treat absoulte urls in prefix as a special case.
2012-02-13 19:44:21 -08:00
Austin King
92fb0191b7
Moving doc string out of code and into API.md
2012-02-13 17:19:34 -08:00
Austin King
fe8df0c486
Fixing Issue#2 and Issue#4 - Added prefix to setup options. Added cachify view helper.
...
Prefix controls prefix of hashified urls.
``cachify`` allows for fine grained control over HTML generated.
Added options parameter to cachify_js, cachify_css, cachify:
* hash - specify a hash value.
Added global-hash option
2012-02-13 16:30:01 -08:00
Austin King
6b946af829
Replacing util.format with compat.format to fix Issue#3 and have node < 5.4 compatibility
2012-02-12 10:42:13 -08:00
Austin King
4f4a0654f1
Whitespace, docs.
2012-02-11 09:49:58 -08:00
Austin King
555c364b45
Changing setup to have two arguments. Started writing unit tests
2012-02-10 17:09:40 -08:00
Austin King
6080698d34
Adding debug option, LICENSE MPL 2.0
2012-02-10 12:20:42 -08:00
Austin King
da60aba2f2
Added root config. Adding hash to cachify urls.
...
Middleware checks incoming requests for cachify hashes and
re-writes the request path.
2012-02-09 17:10:28 -08:00
Austin King
fefa3d3ff1
Initial implementation of cachify_js and cachify_css.
...
In production url is passthrough, in dev mode individual tags
are output for ease of debugging.
Added underscore as a dependency.
2012-02-09 14:40:30 -08:00
Austin King
3aeb3ed14f
Fleshing out README.md
2012-02-08 15:04:27 -08:00