Skip to content

Instantly share code, notes, and snippets.


Satpal Khatana 13014932

  • India, Gurgoan
View GitHub Profile
carolineschnapp / gist:9122054
Last active Nov 15, 2021
Order form to use in a page or collection template.
View gist:9122054
{% comment %}
If you are not on a collection page, do define which collection to use in the order form.
Use the following assign statement, replace 'your-collection-handle-here' with your collection handle.
{% assign collection = collections.your-collection-handle-here %}
Use the assign statement outside of this comment block at the top of your template.
{% endcomment %}
{% paginate collection.products by 100 %}
View gist:4971859

ETags: a pretty sweet feature of HTTP 1.1

HTTP caching review

HTTP provides two ways for servers to control client-side caching of page components:

  • freshness may be based on a date or a token whose meaning is app-specific
  • whether or not the client needs to confirm the cached version is up-to-date with the server

This breaks down as follows:

  • Cache locally and don't check before using.
carolineschnapp / related-products.liquid
Last active Oct 11, 2021
Related Products — to add to product.liquid
View related-products.liquid