{"action":"created","issue":{"url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/483","labels_url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/483/labels{/name}","comments_url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/483/comments","events_url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/483/events","html_url":"https://github.com/cyberdelia/django-pipeline/issues/483","id":97729763,"number":483,"title":"No compression happening","user":{"login":"jplehmann","id":460964,"avatar_url":"https://avatars.githubusercontent.com/u/460964?v=3","gravatar_id":"","url":"https://api.github.com/users/jplehmann","html_url":"https://github.com/jplehmann","followers_url":"https://api.github.com/users/jplehmann/followers","following_url":"https://api.github.com/users/jplehmann/following{/other_user}","gists_url":"https://api.github.com/users/jplehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/jplehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jplehmann/subscriptions","organizations_url":"https://api.github.com/users/jplehmann/orgs","repos_url":"https://api.github.com/users/jplehmann/repos","events_url":"https://api.github.com/users/jplehmann/events{/privacy}","received_events_url":"https://api.github.com/users/jplehmann/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-28T15:08:33Z","updated_at":"2015-07-28T22:49:05Z","closed_at":null,"body":"I'm using django-pipeline with s3. I'm successfully using collectstatic to combined my Javascript files and store them in my s3 bucket, but they are not getting compressed for some reason (verified by looking at the file, its size, and its content-encoding). Otherwise things are working correctly with the combined scripts.js that is produced.\r\n\r\nHere are the changes I made to use django-pipeline:\r\n\r\n1. Added pipeline to installed apps.\r\n1. Added 'pipeline.finders.PipelineFinder' to STATICFILES_FINDERS.\r\n1. Set STATICFILES_STORAGE = 'mysite.custom_storages.S3PipelineManifestStorage' where this class is as defined in the documentation, as seen below.\r\n1. Set PIPELINE_JS as seen below, which works but just isn't compressed.\r\n1. PIPELINE_ENABLED = True since DEBUG = True and I'm running locally.\r\n1. PIPELINE_JS_COMPRESSOR = 'pipeline.compressors.yuglify.YuglifyCompressor' even though this should be default.\r\n1. Installed the Yuglify Compressor with npm -g install yuglify.\r\n1. PIPELINE_YUGLIFY_BINARY = '/usr/local/bin/yuglify' even though the default with env should work.\r\n1. Using the {% load pipeline %} and {% javascript 'scripts' %} which work.\r\n\r\nMore detail:\r\n```\r\nPIPELINE_JS = {\r\n    'scripts': {\r\n        'source_filenames': (\r\n            'lib/jquery-1.11.1.min.js',\r\n            ...            \r\n        ),\r\n        'output_filename': 'lib/scripts.js',\r\n    }\r\n}\r\n\r\nclass S3PipelineManifestStorage(PipelineMixin, ManifestFilesMixin, S3BotoStorage):\r\n    location = settings.STATICFILES_LOCATION\r\n```\r\n\r\nAs mentioned, collectstatic does produce scripts.js just not compressed. The output of that command includes:\r\n\r\n    Post-processed 'lib/scripts.js' as 'lib/scripts.js'\r\n\r\nI'm using Django 1.8, django-pipeline 1.5.2, and django-storages 1.1.8.\r\n\r\nProbably this is something dumb I'm doing, but possibly a bug or missing documentation.   IF I have compression enabled, I'd expect an error at least."},"comment":{"url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/comments/125774188","html_url":"https://github.com/cyberdelia/django-pipeline/issues/483#issuecomment-125774188","issue_url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/483","id":125774188,"user":{"login":"jplehmann","id":460964,"avatar_url":"https://avatars.githubusercontent.com/u/460964?v=3","gravatar_id":"","url":"https://api.github.com/users/jplehmann","html_url":"https://github.com/jplehmann","followers_url":"https://api.github.com/users/jplehmann/followers","following_url":"https://api.github.com/users/jplehmann/following{/other_user}","gists_url":"https://api.github.com/users/jplehmann/gists{/gist_id}","starred_url":"https://api.github.com/users/jplehmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jplehmann/subscriptions","organizations_url":"https://api.github.com/users/jplehmann/orgs","repos_url":"https://api.github.com/users/jplehmann/repos","events_url":"https://api.github.com/users/jplehmann/events{/privacy}","received_events_url":"https://api.github.com/users/jplehmann/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T22:49:05Z","updated_at":"2015-07-28T22:49:05Z","body":"Is this the issue?  \r\n\r\n> To make it work with S3, you would need to change the staticfiles storage url method to return .gz urls (and staticfiles/pipeline template tags depending if you care for clients that don't support gzip).\r\nAlso don't forget to setup the proper header on s3 to serve theses assets as being gzipped.\r\n> Pipeline GZIP support is fairly recent and limited, you seems to be the first users, so thanks for bearing with me here.\r\n> https://github.com/cyberdelia/django-pipeline/issues/312#issuecomment-33755035\r\n"}}