Use versioned URLs to allow caching

Home Forums Jquery Validation for Contact Form 7 Use versioned URLs to allow caching

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #10966
    Florian
    Guest

    It is super useful to have the CSS and JavaScript files loaded with a ?ver=1.2.3 query parameter:

    – /wp-content/plugins/jquery-validation-for-contact-form-7/css/jvcf7_validate.css?ver=1.2.3
    instead of
    – /wp-content/plugins/jquery-validation-for-contact-form-7/css/jvcf7_validate.css

    This allows for some good caching to be applied to all files with a ?ver parameter. Once the plugin is updated, the version is increased and all old caches are invalidated.

    This works by using the wp_register_style PHP function and providing a version.

    (This issue has been reported before at https://wordpress.org/support/topic/use-versioned-urls/)

    #10975
    Dinesh
    Keymaster

    Hi Florian,

    Thank you so much for the suggestion. I will update it.

    Thanks

    #11010
    Florian
    Guest

    Hey and thanks for your effort. When will you release an updated version of the plugin?

    Thanks again,
    Florian

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Use versioned URLs to allow caching’ is closed to new replies.