Giter Club home page Giter Club logo

Comments (4)

mstg avatar mstg commented on September 23, 2024

It seems like the donation page relies on the generated stylesheet.

<link href="https://rockylinux.org/styles.56bd1f5b1d880faf5355.css" rel="stylesheet" />

For the latest version that stylesheet is now named styles.b8ec5ea3d7ea821033a3.css.
It may not be a good idea to rely on a file that changes each deploy, so is it possible to use a static filename with a cache busting query?

from rockylinux.org-gatsby.

FoggyMtnDrifter avatar FoggyMtnDrifter commented on September 23, 2024

This has been fixed, I simply included the styles in the same file.

from rockylinux.org-gatsby.

hbjydev avatar hbjydev commented on September 23, 2024

@mstg We're sort of at the mercy of Gatsby when it comes to this, unless one of the plugins it provides will let us spit out a cacheable version of the file instead of the auto-generated one it currently makes.

from rockylinux.org-gatsby.

NeilHanlon avatar NeilHanlon commented on September 23, 2024

@hbjydev I'm not sure how gatsby is configured, but is there perhaps some generic URL we can use that doesn't put styles..css, but rather styles.css?v=<sha> ?

In the CDN, that URI will be cached, but also it should return just some default stylesheet without the queryparam. The SHA is really just a cachebuster for the stylesheet, and ideally that param should be at the end.

I'm not familiar enough w/ gatsby to say if there's maybe some config that controls the URI generated for CSS?

from rockylinux.org-gatsby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.