Nginx If-Modified-Since sometimes is ignored

Css files are picked from the cache, so i have to manually edit file version style.css?v=2 for example, to force cache reset.

On my PC everything is ok, but many people telling, that they have old logo or old design stuff from the last version of css file. Meaning they are taken from the cache.

How to fix this via nginx?

I'm already thinking about solution to dynamically append modify time to all css files like this style.css?v=%last file modify time%

The only caching thing inside my nginx conf is this line:

expires 1y;


When modified is omitted expires will allow the browser to cache a file based on the request time. Read the mod_header documentation for all the details.

Need Your Help

Filtering non-primitive types with hibernate

java hibernate soft-delete

In my database I do not delete objects. Instead a soft delete is done. Means a delted flag is set to true. This should be filtered by hibernate using the @Filter annotation.

Spring Boot: Is it possible to use external files in arbitrary directories with a fat jar?

spring configuration spring-boot

Is it possible to have multiple file? (EDIT: note that this question evolved to the one on the title.)

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.