public static String appendCacheBuster(String url, boolean cache) {
        if (url == null) {
            return url;
        }
        url += url.contains("?") ? "&" : "?";
        url += Constants.DYNAMIC_CONTENT_CACHE_PARAM + "=" + cache;

        if (!cache) {
            url += "&uid=" + UUID.randomUUID();
        }
        return url;
    }
Adds the cookie represented by the arguments to the response. If the current HTTP conversation is secured
over SSL (e.g. https:) then the cookie is set to secure=true and sameSite=Strict.

@param context the FacesContext contains the External context we add the cookie to
@param name To be passed as the first argument to the <code>Cookie</code> constructor.
@param value To be passed as the second argument to the <code>Cookie</code> constructor.
@param properties A <code>Map</code> containing key/value pairs to be passed
as arguments to the setter methods as described above.
primefaces/src/main/java/org/primefaces/util/ResourceUtils.java