summaryrefslogtreecommitdiffstatshomepage
path: root/core/lib/Drupal/Core/Asset/AssetQueryStringInterface.php
blob: 6faf39181464af6c5d325031a25574536c5fcc74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

declare(strict_types=1);

namespace Drupal\Core\Asset;

/**
 * Provides a cache busting query string service for asset URLs.
 */
interface AssetQueryStringInterface {

  /**
   * Resets the cache query string added to all CSS and JavaScript URLs.
   *
   * Changing the cache query string appended to CSS and JavaScript URLs forces
   * all browsers to fetch fresh files.
   */
  public function reset(): void;

  /**
   * Gets the query string value.
   */
  public function get(): string;

}