Code Monkey home page Code Monkey logo

Comments (7)

jeremydw avatar jeremydw commented on May 3, 2024

Perhaps related to this issue, I noticed that one low-hanging fruit to improve the site's performance would be to correctly handle and serve static assets with 304 response codes.

As an example – load https://developers.google.com/web/fundamentals/css/styles.min.css in a browser, open up the devtools, and refresh. Instead of serving a 200, ideally you'd serve a 304 (if my browser sent the right If-None-Match header). Of course, this would speed up the experience a bit for small assets and a bunch for larger assets. And would particularly help over slow connections. :)

I assume PageSpeed would handle this for you if configured correctly, though it may be easier to implement this directly in your app. :)

from webfundamentals.

sethladd avatar sethladd commented on May 3, 2024

@PaulKinlan this sounds like two issues. Do we want to split into two?

from webfundamentals.

PaulKinlan avatar PaulKinlan commented on May 3, 2024

The issue @jeremydw mentions is #14 - I am not sure how the infrastructure handles caching...

from webfundamentals.

jeremydw avatar jeremydw commented on May 3, 2024

It's probably two issues, but integrating with PageSpeed will "kill two birds with one stone", depending on the PageSpeed config you use.

AFAIK, since PageSpeed serves as a proxy for your page's resources, even if the serving infrastructure doesn't handle caching/304s for your assets, since PageSpeed proxies all your page's resources (like the styles.min.css file that I mentioned, etc.) – the PageSpeed service will allow you to leverage caching for everything except the HTML files themselves (again, according to my experience using PSS).

from webfundamentals.

gauntface avatar gauntface commented on May 3, 2024

Is there any reason why we aren't using filerev in the grunt step?

If we enabled it we could probably extend the expiration?

from webfundamentals.

PaulKinlan avatar PaulKinlan commented on May 3, 2024

We don't have access to changing these on devsite.

On 12 June 2014 17:23, Matthew Gaunt [email protected] wrote:

Is there any reason why we aren't using filerev in the grunt step?

If we enabled it we could probably extend the expiration?


Reply to this email directly or view it on GitHub
#12 (comment)
.

from webfundamentals.

petele avatar petele commented on May 3, 2024

closing as we don't have access to change this :(

from webfundamentals.

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.