Deprecated: Function get_magic_quotes_gpc() is deprecated in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 99

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 619

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1169

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176

Warning: Cannot modify header information - headers already sent by (output started at /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php:99) in /hermes/walnacweb04/walnacweb04ab/b2791/pow.jasaeld/htdocs/De1337/nothing/index.php on line 1176
E583 Gzip caching plugin by mblayman · Pull Request #586 · getpelican/pelican · GitHub
Nothing Special   »   [go: up one dir, main page]

Skip to content

Conversation

mblayman
Copy link
Contributor

This is a plugin that will create a gzipped cache file for all the text file types. I wrote this so I could take advantage of gzip_static in Nginx which looks for files with a .gz extension when attempting to serve compressed versions (e.g., foo.html would look for foo.html.gz in the same directory).

This will enable a pelican project to run from a webserver without needing the webserver to do on-the-fly gzip compression (which will help to reduce CPU load).

I'm not sure why the plugin documentation file looks like I completely redid it. All I did was add a section for the "Gzip cache" plugin and added the section to the bulleted list of plugins. Perhaps it's because I edited the file through Cygwin and used the GitHub Windows client. Maybe it's an issue with dos2unix or unix2dos file formatting.

gzip_static in Nginx looks for a companion compressed file that has a
.gz extension. For example, foo.html and foo.html.gz would actually
serve foo.html.gz for any requests for foo.html.
Extending the Writer wasn't the complete answer because the static
generator also copies some files. Instead, I implemented the work as a
plugin that attaches to the finalized event.
@bbinet
Copy link
Contributor
bbinet commented Nov 24, 2012
8000

Thanks, that seems a useful plugin for nginx.
Could you also add some tests?
About the documentation diff issue, it would be great if you could dos2unix your file before commit.

@mblayman
Copy link
Contributor Author

I added a .gitattributes file which should help any cross platform development in the future (and it normalized the files I edited back to a standard Unix format).

I didn't notice any unit tests for the plugins which is why I didn't write any. I'll add some soon.

@justinmayer
Copy link
Member

I'm not convinced that the committed .gitattributes file is the way to go. Folks running Windows can simply configure their machines to perform the needed conversion via:

git config --global core.autocrlf true

@mblayman
Copy link
Contributor Author

I went with the .gitattributes file because it seems to be what the GitHub Windows client was recommending. If the consensus with this crowd is that the file is not wanted, I'm happy to remove it.

@bbinet
Copy link
Contributor
bbinet commented Nov 26, 2012

I would be +1 with the .gitattributes file so that a consistent behaviour is ensured for all users regardless of their git settings.
See: https://help.github.com/articles/dealing-with-line-endings

@justinmayer
Copy link
Member

Yeah, I've seen that link before, and I'm still not convinced that we need a .gitattributes file cluttering up the repo. But maybe I'm just OCD that way.

At the very least, the contents of said file should trimmed down to the bare minimum:

# Auto detect text files and perform LF normalization
* text=auto

The other lines aren't relevant to Pelican and should be added to local workstations via the core.autocrlf directive.

@bbinet
Copy link
Contributor
bbinet commented Nov 26, 2012

On 26 November 2012 23:24, Justin Mayer notifications@github.com wrote:

Yeah, I've seen that link before, and I'm still not convinced that we need
a .gitattributes file cluttering up the repo. But maybe I'm just OCD that
way.

At the very least, the contents of said file should trimmed down to the
bare minimum:

Auto detect text files and perform LF normalization

  • text=auto

I'm +1 on @justinmayer proposal.
@mblayman if it sounds reasonable for you, could you update the pr in that
direction?


Reply to this email directly or view it on GitHubhttps://github.com//pull/586#issuecomment-10736936.

@mblayman
Copy link
Contributor Author

As requested, I've reduced the .gitattributes file to just the essential.

@bbinet bbinet closed this in 6380cd4 Nov 29, 2012
@bbinet
Copy link
Contributor
bbinet commented Nov 29, 2012

Thanks @mblayman !
I've just reworked the history a bit to remove useless commits or unreadable diffs because of the eol issue we talked about.

@mblayman
Copy link
Contributor Author
mblayman commented Dec 1, 2012

Awesome! Thanks @bbinet! I'm glad I was able to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0