Граф коммитов

85 Коммитов

Автор SHA1 Сообщение Дата
Shane Tomlinson 594d9185d6 Add default value docs for async and defer 2013-05-29 17:53:57 +01:00
Shane Tomlinson e2e2a57871 Simplify the defer/async API options.
* defer and async are only added to scripts in production mode.
2013-05-29 17:42:57 +01:00
Shane Tomlinson f059fcc172 Add the ability to add the `defer` or `async` attributes to scripts.
Helpers for mozilla/browserid#3454
2013-05-29 16:42:40 +01:00
Lloyd Hilaiel 87ebacfc86 v0.0.14 2013-04-26 16:38:55 -06:00
Austin King d85dfe5270 Merge pull request #32 from mozilla/issue31
always check file checksum and ensure that in-url hash matches file cont...
2013-04-25 16:09:45 -07:00
Lloyd Hilaiel f2f175a34c make the file read that happens on every request async, and document the test that verifies mismatched checksums don't result in url re-writing 2013-04-25 15:23:59 -06:00
Lloyd Hilaiel c9b04320ae always check file checksum and ensure that in-url hash matches file contents. issue #31 2013-04-24 16:59:13 -06:00
Austin King 9f879dc1c8 Publishing 0.0.13 2013-02-08 09:52:49 -08:00
Austin King ae4fbbc11c Merge pull request #27 from shane-tomlinson/url_to_path
Add the ability to specify a url_to_path table.
2013-02-08 09:14:48 -08:00
Shane Tomlinson 44cfcf60f8 Beef up the test for url_to_paths.
* Add a file to the repo, test/test-data/test-file.js which is used as a stable file from which to calculate the md5. This is used to make sure url_to_paths is operating as expected.
2013-02-08 10:14:19 +00:00
Shane Tomlinson f3c1c406db Add url_to_paths to initial example in README.md 2013-02-07 11:48:22 +00:00
Shane Tomlinson eafa4a2fc8 Update docs for the new url_to_paths option. 2013-02-07 11:40:31 +00:00
Shane Tomlinson a876c343c1 Clean up the test for url_to_paths functionality. 2013-02-07 11:14:18 +00:00
Austin King 5f400abd2b Merge pull request #26 from mozilla/mock_resp
Remove duplicate resp code in unit tests by creating a generic "get_resp" funciton.
2013-01-27 11:51:47 -08:00
Shane Tomlinson a12c9a6e89 Add the ability to specify a url_to_path table.
This allows files to be looked up that may not be in the root path.
2013-01-27 09:22:46 +00:00
Shane Tomlinson f2ec7c64e3 Remove duplicate resp code by creating a generic "get_resp" funciton. 2013-01-27 08:55:10 +00:00
Austin King 894cd11a4a Publishing 0.0.13alpha 2013-01-23 15:02:58 -08:00
Austin King 3f7f97a4a4 Merge branch 'master' of github.com:mozilla/connect-cachify 2013-01-23 15:00:06 -08:00
Austin King f550b17abd Check fs for existsSync. Fixes #21
Updated test to exercise more of the codepaths.
2013-01-23 14:58:53 -08:00
Austin King b25e9ecf17 Merge pull request #22 from wolfeidau/master
Added example for use in Jade templates
2013-01-23 14:02:38 -08:00
Austin King 79cef164e5 Merge pull request #23 from fmarier/prefetch
Prefetch
2013-01-23 14:01:42 -08:00
Austin King ea11e6e6ba Merge pull request #25 from mozilla/issue_24_hash_in_url
Allow development resources to contain fragment identifiers.
2013-01-23 13:41:52 -08:00
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
Francois Marier 0e2abd3be1 Add tests for the new prefetch helper function 2012-11-28 15:38:35 +13:00
Francois Marier 162423e97a Add a new cachify_prefetch helper
This generates <link rel="prefetch"> tags which provide prefetching
hints to browsers that support this HTML5 feature.
2012-11-28 14:47:38 +13:00
Francois Marier ada022e23c Typo in README 2012-11-23 15:10:13 +13:00
Mark Wolfe c402c0ff77 Few updates to match sample data. 2012-11-22 10:52:53 +11:00
Mark Wolfe e38444c7b3 Added jade template example. 2012-11-22 10:50:14 +11:00
Austin King adea4dcc21 Version 0.0.12 Express 3 support 2012-10-24 13:19:28 -07:00
Austin King 4354893e6b Merge branch 'master' of github.com:mozilla/connect-cachify 2012-10-24 13:18:47 -07:00
Austin King c5acfd62d4 Adding tests for Express 2 and 3 2012-10-24 13:18:37 -07:00
Austin King 740d1c2775 Merge pull request #17 from travis4all/clean
The repo your repo could be like!
2012-10-24 10:02:24 -07:00
Austin King e5a003128a Merge pull request #18 from madmatah/master
Express3 support
2012-10-24 10:00:10 -07:00
Austin King c7e0baddb9 Publishing 0.0.11 2012-10-08 13:36:02 -07:00
Austin King 612a17a24c Merge branch 'master' of github.com:mozilla/connect-cachify 2012-10-08 13:35:21 -07:00
Shane Tomlinson c8b04f7c9e Merge pull request #19 from mozilla/16-remove-globals
remove globals, fixes from jshint

Looks good to me, tests still pass, all code makes sense. The only other thing that needs done is for the package version number to be incremented and a new npm published. @ozten or @lloyd, do one of you have these awesome powers?

r+

close #16
2012-10-04 18:47: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
travis4all df8a6a6c89 💎 Travis CI image/link in readme 💎 2012-08-23 09:08:27 +00:00
travis4all c05b04d522 💎 Added travis.yml file 💎 2012-08-23 09:08:27 +00:00
Austin King cdf6a3b21d Merge pull request #15 from mozilla/absolute_urls_fix
add a test for prefixes with url's, fix a formatting bug where filename ...
2012-06-13 09:16:47 -07: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 ee93efaeed Version 0.0.10 2012-06-09 11:09:29 -07: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 09c4ee206e Bumping version 0.0.7 2012-02-17 09:29:36 -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 878cc59642 Bumping to 0.0.6. Fixing caching headers. Using 10 digit hash like key instead of MD5 2012-02-16 17:45:51 -08:00
Austin King 1aee55a04a Updating README about ETag and Last-Modified magick 2012-02-16 17:29:09 -08:00