Coder Social home page Coder Social logo

femiwiki / caddy-mwcache Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 355 KB

:wrench: Caddy anonymous cache plugin for MediaWiki

License: GNU Affero General Public License v3.0

Go 97.35% PHP 2.65%
cache plugin caddy-plugin caddy-module mediawiki caddy caddy2

caddy-mwcache's Introduction

femiwiki

This is an issues-only repo for Femiwiki.

caddy-mwcache's People

Contributors

dependabot[bot] avatar lens0021 avatar simnalamburt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

lens0021

caddy-mwcache's Issues

mwcache로 이름 변경

wm는 위키미디어의 줄임말로 주로 위키미디어 재단과 그 사이트들(위키백과 등)에 관련된 경우에 자주 쓰는 접두사입니다. 아닌 경우는 지금 생각나는 건 wvui 정도...?
이 모듈처럼 미디어위키와 관련된 경우는 mw를 쓰는 게 더 적절해보이는데 어떨까요?

@simnalamburt

Styles are broken sometimes

image

Maybe the log is:

$ curl -Lv 'https://femiwiki.com/load.php?lang=ko&modules=ext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.icons-interactions%2Cindicators%7Cskins.femiwiki%7Cskins.femiwiki.xeicon%7Cwikibase.client.data-bridge.externalModifiers%7Cwikibase.client.init&only=styles&skin=femiwiki'
*   Trying 54.249.101.219:443...
* Connected to femiwiki.com (54.249.101.219) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=femiwiki.com
*  start date: May 11 08:37:14 2021 GMT
*  expire date: Aug  9 08:37:14 2021 GMT
*  subjectAltName: host "femiwiki.com" matched cert's "femiwiki.com"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x5573c270d580)
> GET /load.php?lang=ko&modules=ext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.icons-interactions%2Cindicators%7Cskins.femiwiki%7Cskins.femiwiki.xeicon%7Cwikibase.client.data-bridge.externalModifiers%7Cwikibase.client.init&only=styles&skin=femiwiki HTTP/2
> Host: femiwiki.com
> user-agent: curl/7.74.0
> accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* Connection state changed (MAX_CONCURRENT_STREAMS == 250)!
< HTTP/2 304 
< access-control-allow-origin: *
< cache-control: public, max-age=180, s-maxage=180
< date: Tue, 15 Jun 2021 15:00:22 UTC
< etag: W/"1eg59"
< expires: Tue, 15 Jun 2021 15:03:22 GMT
< server: Caddy
< status: 304 Not Modified
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< x-content-type-options: nosniff
< x-content-type-options: nosniff
< x-frame-options: DENY
< x-powered-by: PHP/7.4.16
< x-request-id: 330165cc5c92c93d47661d88
< x-xss-protection: 1; mode=block
< 
* Connection #0 to host femiwiki.com left intact
*

Sometimes octet-stream is served

$ curl -Lv 'https://femiwiki.com/load.php?lang=ko&modules=ext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.icons-interactions%2Cindicators%7Cskins.femiwiki%7Cskins.femiwiki.xeicon%7Cwikibase.client.data-bridge.externalModifiers%7Cwikibase.client.init&only=styles&skin=femiwiki'
*   Trying 54.249.101.219:443...
* Connected to femiwiki.com (54.249.101.219) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*  CAfile: /etc/ssl/certs/ca-certificates.crt
*  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN, server accepted to use h2
* Server certificate:
*  subject: CN=femiwiki.com
*  start date: May 11 08:37:14 2021 GMT
*  expire date: Aug  9 08:37:14 2021 GMT
*  subjectAltName: host "femiwiki.com" matched cert's "femiwiki.com"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55852be38580)
> GET /load.php?lang=ko&modules=ext.uls.interlanguage%7Cext.visualEditor.desktopArticleTarget.noscript%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.icons-interactions%2Cindicators%7Cskins.femiwiki%7Cskins.femiwiki.xeicon%7Cwikibase.client.data-bridge.externalModifiers%7Cwikibase.client.init&only=styles&skin=femiwiki HTTP/2
> Host: femiwiki.com
> user-agent: curl/7.74.0
> accept: */*
> 
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* Connection state changed (MAX_CONCURRENT_STREAMS == 250)!
< HTTP/2 200 
< access-control-allow-origin: *
< cache-control: public, max-age=180, s-maxage=180
< content-encoding: gzip
< content-type: text/css; charset=utf-8
< date: Sun, 30 May 2021 12:07:31 UTC
< etag: W/"1p7us"
< expires: Sun, 30 May 2021 12:10:31 GMT
< server: Caddy
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< vary: Accept-Encoding
< x-content-type-options: nosniff
< x-content-type-options: nosniff
< x-frame-options: DENY
< x-powered-by: PHP/7.4.16
< x-request-id: cd50e38d6fa20da491180ec2
< x-xss-protection: 1; mode=block
< 
Warning: Binary output can mess up your terminal. Use "--output -" to tell 
Warning: curl to output it to your terminal anyway, or consider "--output 
Warning: <FILE>" to save to a file.
* Failure writing output to destination
* stopped the pause stream!
* Connection #0 to host femiwiki.com left intact
  • patch 1 → Do not store octet response (4bff942)
  • patch 2 → Do not serve octet cache → 2ed6dc6

Originally reported at femiwiki/femiwiki#265

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.