Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8888071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:57:27+00:00 2026-06-14T21:57:27+00:00

Here is the plugin code… module Jekyll module VersionFilter def versioned_url(input) #{input}?#{Time.now.to_i} end end

  • 0

Here is the plugin code…

module Jekyll
  module VersionFilter
    def versioned_url(input)
      "#{input}?#{Time.now.to_i}"
    end
  end
end

Liquid::Template.register_filter(Jekyll::VersionFilter)

I am trying to cache bust/version control my .css file. I am new to Liquid. I am having trouble figuring out this basic plugin. Any help?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T21:57:29+00:00Added an answer on June 14, 2026 at 9:57 pm

    You need to put version.rb into the _plugins/ directory in the root of your Jekyll site. If you don’t have a _plugins/ directory, create one.

    For usage – it looks like it gives a new filter that you can apply to text – so you’d use it in your templates to filter the references to your CSS files, adding the query string so that they aren’t cached – but I’m sure there’s more info on that wherever you got the code from.

    For what it’s worth, breaking caches with querystrings isn’t the best solution. It’d probably be better to write a plugin that adds a new string to the actual filename, and then adds that string to the urls where those assets are included in the templates – but that is a bit more complex.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here is my plugin activation code $classified_category_name = 'classified'; $credit_table_name = 'credits'; $credit_table_version =
I'm using this plugin and here is the code: http://jsfiddle.net/gm8t5/ Basically I want to
I'm using a DateRangePicker plugin in my code. Here is my code: <script type=text/javascript
I am trying to update a wordpress plugin. At current time the plugin code
I am trying to combine ajaxSubmit with the validate plugin Here is my code
Here's my code ( http://jsfiddle.net/nB4Hg/ ): JQuery: // plugin code (function($) { $.fn.coloredDiv =
here is the code: http://jsfiddle.net/bfQMD/11/ Im using flip pluging and how to change opacity.
Here is the code: tinyMCE.init({ mode: textareas, theme: advanced, plugins: autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template, // Theme options
How to dynamically change the timeout of the cycle plugin here is my attempt
anyone using the jQuery Elastic plugin around here? Pretty handy but I just don't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.