|
@@ -76,6 +76,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
|
|
+ <p>You can use <a rel="nofollow" target="_blank" href="https://mcuuid.net">mcuuid.net</a> to find the UUID of a username.</p>
|
|
</section>
|
|
</section>
|
|
|
|
|
|
<section id="avatars">
|
|
<section id="avatars">
|
|
@@ -210,10 +211,12 @@
|
|
<h3><a href="#meta-caching">About Caching</a></h3>
|
|
<h3><a href="#meta-caching">About Caching</a></h3>
|
|
<p>
|
|
<p>
|
|
Crafatar checks for skin updates every <%= config.caching.local / 60 %> minutes.<br>
|
|
Crafatar checks for skin updates every <%= config.caching.local / 60 %> minutes.<br>
|
|
- Images are cached in your browser for <%= config.caching.browser / 60 %> minutes until a new request to Crafatar is made.<br>
|
|
|
|
- In addition, <span title="A CDN and caching proxy">CloudFlare</span> caches up to 2 hours on a per-url basis.
|
|
|
|
|
|
+ Images are also cached in your browser for <%= config.caching.browser / 60 %> minutes unless you clear your browser cache.
|
|
|
|
+ <% if (config.caching.cloudflare) { %>
|
|
|
|
+ <br>In addition, <span title="A CDN and caching proxy">Cloudflare</span> may cache images as long as your browser would.
|
|
|
|
+ <% } %>
|
|
</p>
|
|
</p>
|
|
- <p>When you changed your skin you can try clearing your browser cache to see the change faster.</p>
|
|
|
|
|
|
+ <p>After changing your Minecraft skin, you can try clearing your browser cache to see the change faster.</p>
|
|
</section>
|
|
</section>
|
|
|
|
|
|
<section id="meta-cors">
|
|
<section id="meta-cors">
|
|
@@ -224,11 +227,25 @@
|
|
<section id="meta-http-headers">
|
|
<section id="meta-http-headers">
|
|
<h3><a href="#meta-http-headers">HTTP Headers</a></h3>
|
|
<h3><a href="#meta-http-headers">HTTP Headers</a></h3>
|
|
<p>
|
|
<p>
|
|
- Responses come with some custom HTTP headers, useful for debugging.<br>
|
|
|
|
- Please note that these headers may be cached by <span title="A CDN and caching proxy">CloudFlare</span>.
|
|
|
|
|
|
+ Crafatar always replies with a <code>200 OK</code> status code when the requested user's skin/cape was found. This is also used in some rare cases when Mojang servers are having issues and the image couldn't be checked for changes, but Crafatar still had a cached version. <code>502 Bad Gateway</code> and <code>500 Server Error</code> are used when no skin/cape was found because of Mojang or Crafatar server issues.
|
|
|
|
+ </p>
|
|
|
|
+ <p>
|
|
|
|
+ Note that requests are usually answered with an image (with Steve/Alex skin), even if an error occured!
|
|
|
|
+ </p>
|
|
|
|
+ <p>
|
|
|
|
+ Responses come with some HTTP headers that are useful for debugging.
|
|
|
|
+ <% if (config.caching.cloudflare) { %>
|
|
|
|
+ <br>Please note that these headers may be cached by <span title="A CDN and caching proxy">Cloudflare</span>.
|
|
|
|
+ <% } %>
|
|
</p>
|
|
</p>
|
|
|
|
|
|
<ul>
|
|
<ul>
|
|
|
|
+ <li>
|
|
|
|
+ <b>Warning</b>: When using a cached image after an error occured. One of:
|
|
|
|
+ <ul>
|
|
|
|
+ <li><code>110 Crafatar "Response is Stale"</code></li>
|
|
|
|
+ <li><code>111 Crafatar "Revalidation Failed"</code></li>
|
|
|
|
+ </ul>
|
|
<li>
|
|
<li>
|
|
<b>X-Storage-Type</b>: Details about how the requested image was stored on the server
|
|
<b>X-Storage-Type</b>: Details about how the requested image was stored on the server
|
|
<ul>
|
|
<ul>
|
|
@@ -237,27 +254,19 @@
|
|
<li><b>checked</b>: Requested skin details, skin cached. (1 external request)<br>
|
|
<li><b>checked</b>: Requested skin details, skin cached. (1 external request)<br>
|
|
This happens either when the user removed their skin or when it didn't change.</li>
|
|
This happens either when the user removed their skin or when it didn't change.</li>
|
|
<li><b>downloaded</b>: Requested skin details, skin downloaded. (2 external requests)</li>
|
|
<li><b>downloaded</b>: Requested skin details, skin downloaded. (2 external requests)</li>
|
|
- <li><b>server error</b>: This can happen, for example, when Mojang's servers are down.<br>
|
|
|
|
- If possible, a cached image is served instead.</li>
|
|
|
|
|
|
+ <li><b>server error</b>: This can happen, for example, when Mojang's servers are down.</li>
|
|
|
|
+ <li><b>server error;cached</b>: Same as server error, but a cached skin was available.</li>
|
|
<li><b>user error</b>: You have done something wrong, such as requesting a malformed uuid.<br>
|
|
<li><b>user error</b>: You have done something wrong, such as requesting a malformed uuid.<br>
|
|
Check the response body for details.</li>
|
|
Check the response body for details.</li>
|
|
</ul>
|
|
</ul>
|
|
<li>
|
|
<li>
|
|
<b>X-Request-ID</b>: The internal ID assigned to this request.<br>
|
|
<b>X-Request-ID</b>: The internal ID assigned to this request.<br>
|
|
- If you think something is wrong with your request, please <a href="#contact">contact us</a> and provide this ID.
|
|
|
|
|
|
+ If you think something is wrong with your request, please contact us and provide this ID.
|
|
|
|
+ <li>
|
|
|
|
+ <b>Response-Time</b>: How long it took Crafatar to answer the request, in ms.
|
|
</ul>
|
|
</ul>
|
|
</section>
|
|
</section>
|
|
</section>
|
|
</section>
|
|
-
|
|
|
|
- <section id="contact">
|
|
|
|
- <h2><a href="#contact">Contact</a></h2>
|
|
|
|
- <ul>
|
|
|
|
- <li>Follow us on twitter <a href="https://twitter.com/crafatar" target="_blank">@crafatar</a></li>
|
|
|
|
- <li>Open an issue <a href="https://github.com/crafatar/crafatar/issues" target="_blank">on GitHub</a></li>
|
|
|
|
- <li><a href="https://webchat.esper.net/?channels=crafatar" target="_blank">Join us</a> in <a href="irc://irc.esper.net/crafatar">#crafatar</a> on irc.esper.net</li>
|
|
|
|
- </ul>
|
|
|
|
- </section>
|
|
|
|
- </section>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-3">
|
|
<div class="col-md-3">
|
|
@@ -282,7 +291,14 @@
|
|
<a rel="nofollow" href="https://github.com/sk89q/Plumeria" target="_blank" class="list-group-item">Plumeria <i>(Discord)</i></a>
|
|
<a rel="nofollow" href="https://github.com/sk89q/Plumeria" target="_blank" class="list-group-item">Plumeria <i>(Discord)</i></a>
|
|
<a href="https://github.com/crafatar/crafatar/wiki/Who-uses-crafatar%3F#other-services-using-crafatar" target="_blank" class="list-group-item">and many more…</a>
|
|
<a href="https://github.com/crafatar/crafatar/wiki/Who-uses-crafatar%3F#other-services-using-crafatar" target="_blank" class="list-group-item">and many more…</a>
|
|
</div>
|
|
</div>
|
|
|
|
+ <hr>
|
|
|
|
+ <h4>Contact</h4>
|
|
|
|
+ <div class="list-group">
|
|
|
|
+ <a class="list-group-item" href="https://twitter.com/crafatar" target="_blank">@crafatar on Twitter</a>
|
|
|
|
+ <a class="list-group-item" href="https://github.com/crafatar/crafatar/issues" target="_blank">Issue tracker</a>
|
|
|
|
+ </div>
|
|
<% if (config.sponsor.sidebar) { %>
|
|
<% if (config.sponsor.sidebar) { %>
|
|
|
|
+ <hr>
|
|
<%- config.sponsor.sidebar %>
|
|
<%- config.sponsor.sidebar %>
|
|
<% } %>
|
|
<% } %>
|
|
</div>
|
|
</div>
|