Office-of-Digital-Services / California-State-Web-Template-Website

The California State Template is an HTML template and sample website offered by the California Department of Technology to various other agencies and departments within the State of California. The template provides California Government entities with guidelines for how their websites should be created and developed, and allows for consistent branding and web standards for State websites. Please visit webtools.ca.gov for more information.
https://template.webstandards.ca.gov/
Other
42 stars 37 forks source link

New CDN paths #1254

Closed kkoryaka closed 6 months ago

kkoryaka commented 1 year ago

Change state template CDN from https://california.azureedge.net/cdt/statetemplate/6.1.0/css/cagov.core.css to something like this https://cdn.webstandards.ca.gov/cdt/statetemplate/6.1.0/css/cagov.core.css

Use SHA integrity, can be generated here... https://www.srihash.org/

We can make CDN refs look like Bootstrap CDN refs. example... <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">

artuoma commented 1 year ago

Please keep all of the old CDN links up and running - this is moving forward only!

carterm commented 1 year ago

We can't "change" but we can start offering a new location. Like... statetemplate.cdt.ca.gov/6.2.0...

carterm commented 1 year ago

Recommend we just keep the old ones running and phase out the use of CDNs going forward. After our short ca.gov outage yesterday, it's just too risky to have website dependencies in two places.

gocrusade commented 1 year ago

Cross posted on another CAWEB repo, but the CDN links for font-only CSS doesn't work after 6.0.7. Files might be missing from intended location. Minified files aren't there either.

Works: https://california.azureedge.net/cdt/statetemplate/6.0.7/css/cagov.font-only.css

Doesn't work: https://california.azureedge.net/cdt/statetemplate/6.2.0/css/cagov.font-only.css https://california.azureedge.net/cdt/statetemplate/6.1.1/css/cagov.font-only.css https://california.azureedge.net/cdt/statetemplate/6.1.0/css/cagov.font-only.css https://california.azureedge.net/cdt/statetemplate/6.0.9/css/cagov.font-only.css https://california.azureedge.net/cdt/statetemplate/6.0.8/css/cagov.font-only.css

image

carterm commented 1 year ago

Cross posted on another CAWEB repo, but the CDN links for font-only CSS doesn't work after 6.0.7. Files might be missing from intended location. Minified files aren't there either.

Works: https://california.azureedge.net/cdt/statetemplate/6.0.7/css/cagov.font-only.css

Doesn't work: https://california.azureedge.net/cdt/statetemplate/6.2.0/css/cagov.font-only.css https://california.azureedge.net/cdt/statetemplate/6.1.1/css/cagov.font-only.css https://california.azureedge.net/cdt/statetemplate/6.1.0/css/cagov.font-only.css https://california.azureedge.net/cdt/statetemplate/6.0.9/css/cagov.font-only.css https://california.azureedge.net/cdt/statetemplate/6.0.8/css/cagov.font-only.css

image

Thanks for noticing. The font-only CSS files were removed after 6.0.7. The CDN page has been updated to reflect that.

carterm commented 1 year ago

https://github.com/Office-of-Digital-Services/California-State-Web-Template-Development/issues/67

kkoryaka commented 10 months ago

There was idea of using code.ca.gov domain to host State Template CDN: Blocker: needed to apply www on from to domain to avoid cookies inheritance. Blocker could be resolved with implementation of the new GA cookies flags code. Blocker: need approval form upper management