{"action":"created","issue":{"url":"https://api.github.com/repos/yvele/poosh/issues/2","repository_url":"https://api.github.com/repos/yvele/poosh","labels_url":"https://api.github.com/repos/yvele/poosh/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/yvele/poosh/issues/2/comments","events_url":"https://api.github.com/repos/yvele/poosh/issues/2/events","html_url":"https://github.com/yvele/poosh/issues/2","id":152195842,"number":2,"title":"InvalidOptions: Failed to parse \"headers.cache-control.maxAge\" option. Value \"6 months\" is invalid.","user":{"login":"Jubijub","id":1254368,"avatar_url":"https://avatars.githubusercontent.com/u/1254368?v=3","gravatar_id":"","url":"https://api.github.com/users/Jubijub","html_url":"https://github.com/Jubijub","followers_url":"https://api.github.com/users/Jubijub/followers","following_url":"https://api.github.com/users/Jubijub/following{/other_user}","gists_url":"https://api.github.com/users/Jubijub/gists{/gist_id}","starred_url":"https://api.github.com/users/Jubijub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jubijub/subscriptions","organizations_url":"https://api.github.com/users/Jubijub/orgs","repos_url":"https://api.github.com/users/Jubijub/repos","events_url":"https://api.github.com/users/Jubijub/events{/privacy}","received_events_url":"https://api.github.com/users/Jubijub/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yvele/poosh/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-01T11:59:29Z","updated_at":"2016-05-01T18:17:13Z","closed_at":null,"body":"```\r\nMatched files: 0 (0 B), 0%.\r\nUploaded files: 0 (0 B)\r\nDeleted remote files: 0 (0 B)\r\n0 creations, 0 updates, 0 deletions, 0 skips.\r\nElapsed time: 2 seconds.\r\nInvalidOptions: Failed to parse \"headers.cache-control.maxAge\" option. Value \"6 months\" is invalid.\r\n    at parseMs (C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\poosh-common\\lib\\options\\parseMs.js:37:11)\r\n    at parseSeconds (C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\poosh-common\\lib\\options\\parseSeconds.js:35:34)\r\n    at addMaxAgeDirective (C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\poosh-core\\lib\\pipeline\\headers\\appendCacheControl.js:26:45)\r\n    at appendCacheControl (C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\poosh-core\\lib\\pipeline\\headers\\appendCacheControl.js:54:3)\r\n    at appendHeaders (C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\poosh-core\\lib\\pipeline\\appendHeaders.js:46:38)\r\n    at Pipeline._callee$ (C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\poosh-core\\lib\\pipeline\\Pipeline.js:104:45)\r\n    at tryCatch (C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\babel-regenerator-runtime\\runtime.js:61:40)\r\n    at GeneratorFunctionPrototype.invoke [as _invoke] (C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\babel-regenerator-runtime\\runtime.js:329:22)\r\n    at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\babel-regenerator-runtime\\runtime.js:94:21)\r\n    at step (C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\poosh-core\\lib\\pipeline\\Pipeline.js:55:191)\r\n    at C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\poosh-core\\lib\\pipeline\\Pipeline.js:55:368\r\n    at run (C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\core-js\\modules\\es6.promise.js:89:22)\r\n    at C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\core-js\\modules\\es6.promise.js:102:28\r\n    at flush (C:\\Users\\jubij\\AppData\\Roaming\\npm\\node_modules\\poosh-cli\\node_modules\\core-js\\modules\\_microtask.js:18:9)\r\n    at _combinedTickCallback (internal/process/next_tick.js:67:7)\r\n    at process._tickDomainCallback (internal/process/next_tick.js:122:9)\r\n```\r\n\r\nThis is the file, which is looking very much like the exemple provided in the readme : \r\n```json5\r\n{\r\n  plugins : [\"poosh-plugin-s3\"],\r\n  baseDir : \".\",\r\n  remote  : \"s3-website.eu-central-1.amazonaws.com/xxxxxxxxxxx\",\r\n\r\n  each: [{\r\n    headers   : { \"cache-control\": { cacheable: \"public\" } }\r\n  }, {\r\n    match     : \"**/*.{html,css,js}\",\r\n    gzip      : true,\r\n    headers   : { \"cache-control\": { maxAge: \"48 hours\" } }\r\n  }, {\r\n    match     : \"**/*.{jpg,png,gif,ico}\",\r\n    gzip      : false,\r\n    headers   : { \"cache-control\": { maxAge: \"6 months\" } }\r\n  }, {\r\n    match     : \"**/*.html\",\r\n    priority  : -1\r\n  }]\r\n}\r\n```\r\nI don't know AWS API so this may be normal, but this is at least a documentation bug."},"comment":{"url":"https://api.github.com/repos/yvele/poosh/issues/comments/216061841","html_url":"https://github.com/yvele/poosh/issues/2#issuecomment-216061841","issue_url":"https://api.github.com/repos/yvele/poosh/issues/2","id":216061841,"user":{"login":"yvele","id":4225430,"avatar_url":"https://avatars.githubusercontent.com/u/4225430?v=3","gravatar_id":"","url":"https://api.github.com/users/yvele","html_url":"https://github.com/yvele","followers_url":"https://api.github.com/users/yvele/followers","following_url":"https://api.github.com/users/yvele/following{/other_user}","gists_url":"https://api.github.com/users/yvele/gists{/gist_id}","starred_url":"https://api.github.com/users/yvele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yvele/subscriptions","organizations_url":"https://api.github.com/users/yvele/orgs","repos_url":"https://api.github.com/users/yvele/repos","events_url":"https://api.github.com/users/yvele/events{/privacy}","received_events_url":"https://api.github.com/users/yvele/received_events","type":"User","site_admin":false},"created_at":"2016-05-01T18:17:12Z","updated_at":"2016-05-01T18:17:12Z","body":"Hi, this is not really a bug.\r\nPoosh is using [ms.js](https://github.com/rauchg/ms.js) to parse durations.\r\nAnd valid units are `years`, `days`, `hours`, `minutes`, `seconds`, `milliseconds`\r\n\r\nI think month is not a valid unit because it doesn't have an official fixed duration, it can be 28, 29, 30 or 31 days..\r\n\r\nThe is an opened issue about the month unit here: https://github.com/rauchg/ms.js/issues/57"}}